mirror of
https://github.com/ko-build/ko.git
synced 2026-06-18 20:14:08 +02:00
* 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
25 lines
424 B
YAML
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
|