go-generic/.forgejo/workflows/workflow.yaml
Dan Anglin 308d286646
chore: update project template
- workflow: run the test job only when the PR is not in the draft state.
- workflow: use the remote mage-ci action to run the tests via mage.
- workflow: remove the lint job for now. In the future it may be
  replaced by a step.
- lint: update .golangci.yaml
2024-08-27 23:17:00 +01:00

26 lines
520 B
YAML

---
name: Workflow
on:
pull_request:
types:
- opened
- synchronize
jobs:
test:
if: ${{ ! github.event.pull_request.draft }}
runs-on: docker
env:
GO_TEST_VERBOSE: "1"
GO_TEST_COVER: "1"
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"