indieauth-server/.forgejo/workflows/workflow.yaml
Dan Anglin f393d982f5
Some checks failed
CI / Tests (pull_request) Failing after 2m18s
CI / Style (pull_request) Failing after 8s
run gosec and staticcheck in ci
2024-10-13 12:04:20 +01:00

40 lines
917 B
YAML

---
name: CI
on:
pull_request:
types:
- opened
- synchronize
jobs:
tests:
name: Tests
if: ${{ ! github.event.pull_request.draft }}
runs-on: docker
steps:
- name: Checkout Repository
uses: https://code.forgejo.org/actions/checkout@v4
- name: Test
uses: https://codeflow.dananglin.me.uk/actions/mage-ci@main
with:
target: test
env:
PROJECT_TEST_VERBOSE: "1"
PROJECT_TEST_COVER: "1"
- name: Gosec
uses: https://codeflow.dananglin.me.uk/actions/mage-ci@main
with:
target: gosec
style:
name: Style
if: ${{ ! github.event.pull_request.draft }}
runs-on: docker
steps:
- name: Checkout Repository
uses: https://code.forgejo.org/actions/checkout@v4
- name: Run staticcheck
uses: https://codeflow.dananglin.me.uk/actions/mage-ci@main
with:
target: staticcheck