Files
my-rook-config/.github/workflows/unit-test.yml
T
Sébastien Han 2d1cf09d8d ci: only run the canary test on code changes
If no Go files changed we do not run the CI.

Signed-off-by: Sébastien Han <seb@redhat.com>
2020-11-16 18:05:07 +01:00

24 lines
547 B
YAML

name: Unit tests
on:
pull_request:
paths:
- '**.go'
jobs:
unittests:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v1
- uses: actions/setup-go@v2
with:
go-version: 1.13
- name: copy working directory to GOPATH
run: sudo mkdir -p /home/runner/go/src/github.com && sudo cp -a /home/runner/work/rook /home/runner/go/src/github.com/
- name: run unit tests
run: cd /home/runner/go/src/github.com/rook/rook && GOPATH=$(go env GOPATH) make -j $(nproc) test