Skip to content

Commit

Permalink
Merge pull request #105 from boddumanohar/setup-integration-testing-g…
Browse files Browse the repository at this point in the history
…-workflow

move integration tests into github workflows
  • Loading branch information
k8s-ci-robot authored Sep 7, 2020
2 parents 5666109 + d783d25 commit 99b7bbe
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 4 deletions.
28 changes: 25 additions & 3 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,31 @@ jobs:
- name: Check out code into the Go module directory
uses: actions/checkout@v2

- name: Test
run: go test -covermode=count -coverprofile=profile.cov ./pkg/...

- 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
make verify
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
run: |
export PATH=$PATH:$HOME/.local/bin
make
make sanity-test
- name: Send coverage
env:
COVERALLS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
uses: actions/checkout@v2
- name: Build
run: |
go build -a -o _output/smbplugin.exe ./pkg/smbplugin
make smb-windows
- name: Run Windows Unit Tests
run: |
go test -v -race ./pkg/...

0 comments on commit 99b7bbe

Please sign in to comment.