chore: upgrade to k8s 1.28.4 lib #1223
Workflow file for this run
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-20.04 | |
steps: | |
- name: Set up Go 1.x | |
uses: actions/setup-go@v4 | |
with: | |
go-version: ^1.16 | |
id: go | |
- name: Check out code into the Go module directory | |
uses: actions/checkout@v4 | |
- name: Install packages | |
run: | | |
sudo apt update | |
sudo apt install cifs-utils procps conntrack -y | |
GO111MODULE=off go get github.com/rexray/gocsi/csc | |
- name: Build Test | |
run: | | |
export PATH=$PATH:$HOME/.local/bin | |
go test -covermode=count -coverprofile=profile.cov ./pkg/... | |
export DOCKER_CLI_EXPERIMENTAL=enabled && make container | |
- name: Integration Testing | |
run: | | |
export PATH=$PATH:$HOME/.local/bin | |
make | |
make integration-test | |
- name: Sanity test | |
env: | |
GITHUB_ACTIONS: true | |
run: | | |
export PATH=$PATH:$HOME/.local/bin | |
make | |
echo "is running in github actions: $GITHUB_ACTIONS" | |
make sanity-test | |
- 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 |