-
Notifications
You must be signed in to change notification settings - Fork 8
54 lines (52 loc) · 1.71 KB
/
test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
on: [ push, pull_request ]
jobs:
unit:
strategy:
matrix:
go: [ "1.18.x", "1.19.x" ]
runs-on: ubuntu-latest
name: Unit tests (Go ${{ matrix.go }})
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
with:
go-version: ${{ matrix.go }}
- run: go version
- name: Install test tools
run: go install github.com/onsi/ginkgo/ginkgo
- name: Install dependencies
run: go build
- name: Run tests
run: ginkgo -r -v -cover -randomizeAllSpecs -randomizeSuites -trace -skipPackage integrationtests
- name: Run tests (32 bit)
env:
GOARCH: 386
run: ginkgo -r -v -cover -coverprofile coverage.txt -outputdir . -randomizeAllSpecs -randomizeSuites -trace -skipPackage integrationtests
- name: Run tests with race detector
run: ginkgo -r -v -race -randomizeAllSpecs -randomizeSuites -trace -skipPackage integrationtests
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v1
with:
file: coverage.txt
env_vars: GO=${{ matrix.go }}
integration:
strategy:
matrix:
go: [ "1.18.x", "1.19.x" ]
runs-on: ubuntu-latest
name: Integration tests (Go ${{ matrix.go }})
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
with:
go-version: ${{ matrix.go }}
- run: go version
- name: Install test tools
run: go install github.com/onsi/ginkgo/ginkgo
- name: Install dependencies
run: go build
- name: Run tests
run: |
for i in {1..25}; do
ginkgo -race -v -randomizeAllSpecs -trace integrationtests/self;
done