cobble/.forgejo/workflows/push.yml
Marc Cataford 40e9ccc61c
All checks were successful
/ sast (push) Successful in 37s
/ tests (push) Successful in 1m3s
ci: run sast+tests
2024-07-11 20:37:10 -04:00

24 lines
562 B
YAML

on:
push:
jobs:
tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version-file: './go.mod'
- name: Install dependencies
run: go mod tidy
- name: Run tests
run: go test -v
sast:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version-file: './go.mod'
- name: Check formatting
run: if [ "$(gofmt -s -l . | wc -l)" -gt 0 ]; then exit 1; fi