ci: run make check on every push and pull request
All checks were successful
check / check (pull_request) Successful in 1m28s
All checks were successful
check / check (pull_request) Successful in 1m28s
This commit is contained in:
parent
aafc15baf4
commit
beb7698a77
1 changed files with 23 additions and 0 deletions
23
.forgejo/workflows/check.yml
Normal file
23
.forgejo/workflows/check.yml
Normal file
|
|
@ -0,0 +1,23 @@
|
||||||
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
|
#
|
||||||
|
# Runs `make check` (gofmt, go vet, staticcheck and the tests) on every push to main and on every
|
||||||
|
# pull request, on the shared runner of git.kmalloc.org.
|
||||||
|
name: check
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: [main]
|
||||||
|
pull_request:
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
check:
|
||||||
|
runs-on: docker
|
||||||
|
steps:
|
||||||
|
- uses: https://code.forgejo.org/actions/checkout@v4
|
||||||
|
- uses: https://code.forgejo.org/actions/setup-go@v5
|
||||||
|
with:
|
||||||
|
go-version-file: go.mod
|
||||||
|
- name: Install staticcheck
|
||||||
|
run: go install honnef.co/go/tools/cmd/staticcheck@latest
|
||||||
|
- name: Run the checks
|
||||||
|
run: PATH="$PATH:$(go env GOPATH)/bin" make check
|
||||||
Loading…
Reference in a new issue