refactor(ci): split tests into two jobs
name: Test
on: push
jobs:
- unit:
- name: Unit
+ ginkgo:
+ name: Ginkgo tests
runs-on: ubuntu-latest
steps:
- name: Set up Go
@@ -16,13 +16,28 @@ jobs:
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
- - name: Run ginkgo tests
+ - name: Run
continue-on-error: true
env:
GOBINPATH: ~/go/bin/
run: |
make setup-ci
make ginkgo-run
+ unit:
+ name: Unit tests
+ runs-on: ubuntu-latest
+ steps:
+ - name: Set up Go
+ uses: actions/setup-go@v1
+ with:
+ go-version: '1.16.3'
+ - name: Checkout
+ uses: actions/checkout@v2
+ - name: Restore cache
+ uses: actions/cache@v2
+ with:
+ path: ~/go/pkg/mod
+ key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
- name: Run tests
env:
GOBINPATH: ~/go/bin/
