Bumps [actions/setup-go](https://github.com/actions/setup-go) from 4 to 5. - [Release notes](https://github.com/actions/setup-go/releases) - [Commits](https://github.com/actions/setup-go/compare/v4...v5) --- updated-dependencies: - dependency-name: actions/setup-go dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com>
36 lines
827 B
YAML
36 lines
827 B
YAML
name: Linux Unit tests
|
|
on:
|
|
pull_request: {}
|
|
push: {}
|
|
|
|
jobs:
|
|
|
|
build:
|
|
name: Build
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
|
|
- name: Set up Go 1.x
|
|
uses: actions/setup-go@v5
|
|
with:
|
|
go-version: ^1.17
|
|
id: go
|
|
|
|
- name: Check out code into the Go module directory
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Build Test
|
|
run: |
|
|
go version
|
|
export PATH=$PATH:$HOME/.local/bin
|
|
make verify
|
|
go test -covermode=count -coverprofile=profile.cov ./pkg/...
|
|
export DOCKER_CLI_EXPERIMENTAL=enabled && make container
|
|
|
|
- name: Send coverage
|
|
env:
|
|
COVERALLS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
run: |
|
|
GO111MODULE=off go get github.com/mattn/goveralls
|
|
$(go env GOPATH)/bin/goveralls -coverprofile=profile.cov -service=github
|