-
Notifications
You must be signed in to change notification settings - Fork 127
87 lines (85 loc) · 2.1 KB
/
acceptance-tests.yaml
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
name: Acceptance Tests
on:
pull_request:
merge_group:
jobs:
tests:
strategy:
fail-fast: false
matrix:
products:
- account
- applesilicon
- az
- baremetal
- billing
- block
- cockpit
- container
- domain
- flexibleip
- function
- iam
- instance
- inference
- iot
- ipam
- jobs
- k8s
- lb
- marketplace
- mnq
- mongodb
- object
- rdb
- redis
- registry
- sdb
- secret
- tem
- vpc
- vpcgw
- webhosting
runs-on: ubuntu-latest
steps:
# Checkout should always be before setup-go to ensure caching is working
- name: Checkout
uses: actions/checkout@v4
- name: Install Go
uses: actions/setup-go@v5
with:
go-version: 1.22
- name: Run Acceptance Tests
run: go test -v ./internal/services/${{ matrix.products }} -timeout=2h
env:
TF_LOG: DEBUG
TF_ACC: 1
TF_UPDATE_CASSETTES: false
TF_TEST_DOMAIN: scaleway-terraform.com
TF_TEST_DOMAIN_ZONE: tf
SCW_DEBUG: 0
SCW_ACCESS_KEY: "SCWXXXXXXXXXXXXXFAKE"
SCW_SECRET_KEY: "11111111-1111-1111-1111-111111111111"
SCW_ENABLE_BETA: true
test-scwconfig:
strategy:
fail-fast: false
runs-on: ubuntu-latest
steps:
# Checkout should always be before setup-go to ensure caching is working
- name: Checkout
uses: actions/checkout@v4
- name: Install Go
uses: actions/setup-go@v5
with:
go-version: 1.22
- name: Run scwconfig tests
run: go test -v ./internal/services/scwconfig -timeout=2m
env:
TF_LOG: DEBUG
TF_ACC: 1
TF_UPDATE_CASSETTES: false
TF_TEST_DOMAIN: scaleway-terraform.com
TF_TEST_DOMAIN_ZONE: tf
SCW_DEBUG: 0
SCW_ENABLE_BETA: true