fetchcert/.forgejo/workflows/tests.yaml
Emmanuel BENOîT 93105aa81a
All checks were successful
Run tests and linters / test (pull_request) Successful in 43s
Run tests and linters / build (pull_request) Successful in 42s
Run tests and linters / lint (pull_request) Successful in 1m19s
chore: fix automated build actions so it doesn't run the tests in the "build" job
2024-07-26 13:55:19 +02:00

65 lines
1.1 KiB
YAML

name: Run tests and linters
on:
push:
branches: [master]
pull_request:
jobs:
test:
runs-on: debian-12
steps:
-
name: Checkout repo
uses: actions/checkout@v4
-
name: Setup Go
uses: actions/setup-go@v5
with:
go-version-file: go.mod
cache-dependency-path: |
go.sum
tools/go.sum
-
name: Run tests
run: |
make test
lint:
runs-on: debian-12
steps:
-
name: Checkout repo
uses: actions/checkout@v4
-
name: Setup Go
uses: actions/setup-go@v5
with:
go-version-file: go.mod
cache-dependency-path: |
go.sum
tools/go.sum
-
name: Run linters
run: |
make lint
build:
runs-on: debian-12
steps:
-
name: Checkout repo
uses: actions/checkout@v4
-
name: Setup Go
uses: actions/setup-go@v5
with:
go-version-file: go.mod
cache-dependency-path: |
go.sum
tools/go.sum
-
name: Build binaries
run: |
make build