-
Notifications
You must be signed in to change notification settings - Fork 19
79 lines (69 loc) · 1.86 KB
/
go.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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
name: Go
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
env:
GO111MODULE: on
jobs:
lint_markdown_files:
uses: optimizely/go-sdk/.github/workflows/lint_markdown.yml@master
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
with:
go-version: '1.21.0'
- run: make install lint
unit_test_latest:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
with:
go-version: '>=1.21.0'
- run: make cover
unit_test_legacy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
with:
go-version: '1.21.0'
check-latest: true
- run: make cover
unit_test_coverage:
runs-on: ubuntu-latest
env:
COVERALLS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
with:
go-version: '1.21.0'
- run: |
go test -race -covermode atomic -coverprofile=covprofile ./...
go install github.com/mattn/goveralls@latest
goveralls -coverprofile=covprofile -service=github
benchmark_test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
with:
go-version: '>=1.21.0'
- run: make benchmark
integration_tests:
uses: optimizely/go-sdk/.github/workflows/integration_test.yml@master
secrets:
CI_USER_TOKEN: ${{ secrets.CI_USER_TOKEN }}
TRAVIS_COM_TOKEN: ${{ secrets.TRAVIS_COM_TOKEN }}
fullstack_production_suite:
uses: optimizely/go-sdk/.github/workflows/integration_test.yml@master
with:
FULLSTACK_TEST_REPO: ProdTesting
secrets:
CI_USER_TOKEN: ${{ secrets.CI_USER_TOKEN }}
TRAVIS_COM_TOKEN: ${{ secrets.TRAVIS_COM_TOKEN }}