indieauth-server/.forgejo/workflows/workflow.yaml
Dan Anglin 4fdad2d805
All checks were successful
CI / Tests (pull_request) Successful in 9s
CI / Style (pull_request) Successful in 9s
feat: project setup
- Set the project's placeholder name to indieauth-server.
- Update the magefiles and CI workflow.
- Add the version command to print the app's build information.
- Add the serve command to run the HTTP server.
2024-10-13 15:36:54 +01:00

48 lines
1.1 KiB
YAML

---
name: CI
on:
pull_request:
branches:
- main
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: Run tests
uses: https://codeflow.dananglin.me.uk/actions/mage-ci@main
with:
target: test
env:
PROJECT_TEST_VERBOSE: "1"
PROJECT_TEST_COVER: "1"
- name: Run 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: Check formatting
uses: https://codeflow.dananglin.me.uk/actions/mage-ci@main
with:
target: gofmt
env:
PROJECT_FAIL_ON_FORMATTING: 1
- name: Run staticcheck
uses: https://codeflow.dananglin.me.uk/actions/mage-ci@main
with:
target: staticcheck