Skip to content

Commit 4f43360

Browse files
Merge pull request #22 from marten-seemann/github-actions
run all tests on GitHub Actions, remove CircleCI config
2 parents 409be37 + 38d2887 commit 4f43360

File tree

2 files changed

+60
-48
lines changed

2 files changed

+60
-48
lines changed

.circleci/config.yml

Lines changed: 0 additions & 48 deletions
This file was deleted.

.github/workflows/test.yml

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
on: [ push, pull_request ]
2+
3+
jobs:
4+
unit:
5+
strategy:
6+
matrix:
7+
go: [ "1.14", "1.15" ]
8+
runs-on: ubuntu-latest
9+
name: Unit tests (Go ${{ matrix.go }})
10+
steps:
11+
- uses: actions/checkout@v2
12+
- uses: actions/setup-go@v2
13+
with:
14+
go-version: ${{ matrix.go }}
15+
- run: go version
16+
- name: Install test tools
17+
run: |
18+
go get golang.org/x/tools/cmd/cover
19+
go get github.com/onsi/ginkgo/ginkgo
20+
go get github.com/onsi/gomega
21+
- name: Install dependencies
22+
run: go build
23+
- name: Run tests
24+
run: ginkgo -r -v -cover -randomizeAllSpecs -randomizeSuites -trace -skipPackage integrationtests
25+
- name: Run tests (32 bit)
26+
env:
27+
GOARCH: 386
28+
run: ginkgo -r -v -cover -coverprofile coverage.txt -outputdir . -randomizeAllSpecs -randomizeSuites -trace -skipPackage integrationtests
29+
- name: Run tests with race detector
30+
run: ginkgo -r -v -race -randomizeAllSpecs -randomizeSuites -trace -skipPackage integrationtests
31+
- name: Upload coverage to Codecov
32+
uses: codecov/codecov-action@v1
33+
with:
34+
file: coverage.txt
35+
env_vars: GO=${{ matrix.go }}
36+
integration:
37+
strategy:
38+
matrix:
39+
go: [ "1.14", "1.15" ]
40+
runs-on: ubuntu-latest
41+
name: Integration tests (Go ${{ matrix.go }})
42+
steps:
43+
- uses: actions/checkout@v2
44+
- uses: actions/setup-go@v2
45+
with:
46+
go-version: ${{ matrix.go }}
47+
- run: go version
48+
- name: Install test tools
49+
run: |
50+
go get golang.org/x/tools/cmd/cover
51+
go get github.com/onsi/ginkgo/ginkgo
52+
go get github.com/onsi/gomega
53+
- name: Install dependencies
54+
run: go build
55+
- name: Run tests
56+
run: |
57+
for i in {1..25}; do
58+
ginkgo -race -v -randomizeAllSpecs -trace integrationtests/self;
59+
done
60+

0 commit comments

Comments
 (0)