2021-11-16 04:56:33 +00:00
|
|
|
name: CI
|
|
|
|
|
|
|
|
on: [push, pull_request]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
test:
|
|
|
|
name: Test
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
timeout-minutes: 5
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- uses: actions/setup-go@v2
|
|
|
|
with:
|
|
|
|
go-version: 1.17.x
|
|
|
|
- name: Go vet
|
|
|
|
run: go vet -v
|
|
|
|
- name: Go test
|
2021-11-16 05:01:41 +00:00
|
|
|
run: go test -v -coverprofile=coverage.out -covermode=atomic -failfast
|
2021-11-16 04:56:33 +00:00
|
|
|
- uses: github/codeql-action/init@v1
|
|
|
|
with:
|
|
|
|
languages: go
|
|
|
|
- uses: github/codeql-action/analyze@v1
|
|
|
|
- uses: codecov/codecov-action@v1
|