Files
ko-build/.github/workflows/test.yaml
T
Jason Hall 9a1eae8517 ci: build and test using 1.18 and 1.19 (drop 1.17) (#812)
* ci: build and test using 1.18 and 1.19 (drop 1.17)

* remove pre-1.18 compat code, update README

* go install goimports before checkout

* update chainguard-dev/actions to versions that go install
2022-09-06 12:59:56 -04:00

25 lines
424 B
YAML

name: Test
on:
push:
branches: ['main']
pull_request:
branches: ['main']
jobs:
test:
name: Unit Tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
with:
go-version: 1.18
check-latest: true
- run: go test -coverprofile=coverage.txt -covermode=atomic -race ./...
- uses: codecov/codecov-action@v3.1.0