-
Notifications
You must be signed in to change notification settings - Fork 13
161 lines (136 loc) · 4.62 KB
/
acceptance.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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
name: Acceptance Tests
on:
pull_request:
schedule:
- cron: '0 10 * * 3'
jobs:
acceptance_tests_client:
name: Acceptance Client
runs-on: ubuntu-latest
env:
ROLLBAR_API_KEY: ${{ secrets.ROLLBAR_API_KEY }}
steps:
# Install Go and Terraform
- uses: actions/setup-go@v2
# Checkout
- uses: actions/checkout@v2
# Restore cache
- uses: actions/cache@v2
with:
path: |
~/go/pkg/mod
~/.cache/go-build
# Blank version number means latest version of Go.
key: ${{ runner.os }}-go-v-${{ hashFiles('**/go.sum') }}
# Wait for up to ten minutes for previous run to complete; abort if not
# done by then.
- name: Block Concurrent Executions
uses: softprops/turnstyle@v1
with:
poll-interval-seconds: 10
same-branch-only: false
abort-after-seconds: 600
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# Run acceptance tests
- name: Acceptance tests client
run: make testacc_client
env:
TERRAFORM_PROVIDER_ROLLBAR_DEBUG: 1
GOMAXPROCS: 8
# Report code coverage
- name: Convert Go coverage file to lcov format
run: |
go get github.com/jandelgado/gcov2lcov
go install github.com/jandelgado/gcov2lcov
~/go/bin/gcov2lcov -infile coverage_client.out -outfile lcov_client.info
- uses: coverallsapp/[email protected]
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
path-to-lcov: ./lcov_client.info
- name: Upload coverage data to CodeClimate
uses: paambaati/[email protected]
with:
coverageLocations: |
${{github.workspace}}/*lcov*:lcov
env:
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
acceptance_tests_rollbar_test1:
name: Acceptance Rollbar Test1
runs-on: ubuntu-latest
env:
ROLLBAR_API_KEY: ${{ secrets.ROLLBAR_API_KEY }}
steps:
# Install Go and Terraform
- uses: actions/setup-go@v2
# Checkout
- uses: actions/checkout@v2
# Restore cache
- uses: actions/cache@v2
with:
path: |
~/go/pkg/mod
~/.cache/go-build
# Blank version number means latest version of Go.
key: ${{ runner.os }}-go-v-${{ hashFiles('**/go.sum') }}
# Wait for up to ten minutes for previous run to complete; abort if not
# done by then.
- name: Block Concurrent Executions
uses: softprops/turnstyle@v1
with:
poll-interval-seconds: 10
same-branch-only: false
abort-after-seconds: 600
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# Run acceptance tests
- name: Acceptance tests rollbar test1
run: make testacc_rollbar_test1
env:
TERRAFORM_PROVIDER_ROLLBAR_DEBUG: 1
GOMAXPROCS: 8
- name: Convert Go coverage file to lcov format
run: |
go get github.com/jandelgado/gcov2lcov
go install github.com/jandelgado/gcov2lcov
~/go/bin/gcov2lcov -infile coverage_test1.out -outfile lcov_test1.info
acceptance_tests_rollbar_test2:
name: Acceptance Rollbar Test2
runs-on: ubuntu-latest
env:
ROLLBAR_API_KEY: ${{ secrets.ROLLBAR_API_KEY }}
ROLLBAR_PROJECT_API_KEY: ${{ secrets.ROLLBAR_PROJECT_API_KEY }}
steps:
# Install Go and Terraform
- uses: actions/setup-go@v2
# Checkout
- uses: actions/checkout@v2
# Restore cache
- uses: actions/cache@v2
with:
path: |
~/go/pkg/mod
~/.cache/go-build
# Blank version number means latest version of Go.
key: ${{ runner.os }}-go-v-${{ hashFiles('**/go.sum') }}
# Wait for up to ten minutes for previous run to complete; abort if not
# done by then.
- name: Block Concurrent Executions
uses: softprops/turnstyle@v1
with:
poll-interval-seconds: 10
same-branch-only: false
abort-after-seconds: 600
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# Run acceptance tests
- name: Acceptance tests rollbar test2
run: make testacc_rollbar_test2
env:
TERRAFORM_PROVIDER_ROLLBAR_DEBUG: 1
GOMAXPROCS: 8
- name: Convert Go coverage file to lcov format
run: |
go get github.com/jandelgado/gcov2lcov
go install github.com/jandelgado/gcov2lcov
~/go/bin/gcov2lcov -infile coverage_test2.out -outfile lcov_test2.info