2024-07-19 22:01:34 +02:00
|
|
|
name: Run tests and linters
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches: [master]
|
2024-07-20 08:56:17 +02:00
|
|
|
pull_request:
|
2024-07-19 22:01:34 +02:00
|
|
|
|
|
|
|
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: Run tests
|
|
|
|
run: |
|
|
|
|
make test
|