Merge pull request #831 from kubernetes-csi/dependabot/go_modules/git… #1622
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 -race -covermode=atomic -coverprofile=profile.cov ./pkg/... | |
export DOCKER_CLI_EXPERIMENTAL=enabled && make container | |
- name: Install goveralls | |
run: go install github.com/mattn/goveralls@latest | |
- name: Send coverage | |
env: | |
COVERALLS_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: goveralls -coverprofile=profile.cov -service=github |