2021-02-19 10:31:20 +01:00
|
|
|
name: ci
|
|
|
|
on: [push, pull_request]
|
|
|
|
jobs:
|
|
|
|
tests:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- uses: actions/setup-go@v2
|
|
|
|
with:
|
2022-05-02 15:57:34 +02:00
|
|
|
go-version: '^1.18'
|
2021-02-19 10:31:20 +01:00
|
|
|
- run: go version
|
2022-06-01 12:16:11 +02:00
|
|
|
- run: go install github.com/mattn/goveralls@latest
|
|
|
|
- run: curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin ${GOLANGCI_RELEASE}
|
2021-02-19 10:31:20 +01:00
|
|
|
env:
|
2022-06-01 12:16:11 +02:00
|
|
|
GOLANGCI_RELEASE: v1.46.2
|
2021-02-19 10:31:20 +01:00
|
|
|
- run: make build.docker
|
|
|
|
- run: make test
|
|
|
|
- run: make check
|
|
|
|
- run: goveralls -coverprofile=profile.cov -service=github
|
|
|
|
env:
|
|
|
|
COVERALLS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|