1
0
Fork 0
mirror of https://github.com/Luzifer/go_helpers.git synced 2024-12-25 13:31:21 +00:00
go_helpers/.github/workflows/test.yml
Knut Ahlers 98aacbd5ad
Drop support for Go 1.18 in tests
Signed-off-by: Knut Ahlers <knut@ahlers.me>
2023-03-18 15:38:40 +01:00

34 lines
482 B
YAML

---
name: test-and-build
on: [push]
jobs:
test:
strategy:
fail-fast: false
matrix:
go_version:
- '1.19'
- '1.20'
- 'latest'
defaults:
run:
shell: sh
container:
image: golang:${{ matrix.go_version }}
env:
CGO_ENABLED: 0
GOPATH: /go
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Test code
run: go test -v -cover ./...
...