Skip to content

Commit 7ce5883

Browse files
ci: Acceptance tests should run on pull requests (#829)
chore(ci): Running acceptance tests only on latest go version ci : split pipeline per product chore: All acceptances tests where not included in the pipeline fix: The workflow is not valid. 'run' is already defined fix: disabling fail fast strategy
1 parent c5df89b commit 7ce5883

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: Acceptance Tests
2+
3+
on:
4+
pull_request:
5+
6+
jobs:
7+
tests:
8+
strategy:
9+
fail-fast: false
10+
matrix:
11+
products:
12+
- Account
13+
- AppleSilicon
14+
- Baremetal
15+
- Instance
16+
- Iot
17+
- K8S
18+
- Lb
19+
- Marketplace
20+
- Object
21+
- Rdb
22+
- Registry
23+
- VPC
24+
runs-on: ubuntu-latest
25+
steps:
26+
- name: Install Go
27+
uses: actions/setup-go@v2
28+
with:
29+
go-version: 1.15.1
30+
- name: Checkout
31+
uses: actions/checkout@v2
32+
- name: Run Acceptance Tests
33+
run: go test -v ./... -timeout=1h -run "TestAccScaleway(DataSource)?${{ matrix.products }}.*"
34+
env:
35+
TF_LOG: DEBUG
36+
TF_ACC: 1
37+
TF_UPDATE_CASSETTES: false
38+
SCW_DEBUG: 0
39+
SCW_ACCESS_KEY: "SCWXXXXXXXXXXXXXFAKE"
40+
SCW_SECRET_KEY: "11111111-1111-1111-1111-111111111111"

0 commit comments

Comments
 (0)