Skip to content

Commit a13293a

Browse files
authored
chore(ci): add support for nightly acceptance tests (#565)
1 parent 2861ad7 commit a13293a

File tree

2 files changed

+38
-1
lines changed

2 files changed

+38
-1
lines changed

.github/workflows/nightly.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Nightly Acceptance Tests
2+
3+
on:
4+
schedule:
5+
# Will run at 00:00 every day
6+
- cron: '0 0 * * *'
7+
8+
jobs:
9+
nightly:
10+
strategy:
11+
matrix:
12+
products:
13+
- Account
14+
- Baremetal
15+
- Instance
16+
- K8S
17+
- Lb
18+
- Object
19+
- Rdb
20+
- Registry
21+
runs-on: ubuntu-latest
22+
steps:
23+
- name: Install Go
24+
uses: actions/setup-go@v2
25+
with:
26+
go-version: 1.15.1
27+
- name: Checkout
28+
uses: actions/checkout@v2
29+
- name: Run Acceptance Tests
30+
run: go test -v ./... -timeout=1h -run TestAccScaleway${{ matrix.products }}*
31+
env:
32+
TF_LOG: DEBUG
33+
TF_ACC: 1
34+
SCW_DEBUG: 1
35+
SCW_ACCESS_KEY: ${{ secrets.SCW_ACCESS_KEY }}
36+
SCW_SECRET_KEY: ${{ secrets.SCW_SECRET_KEY }}
37+
SCW_DEFAULT_ORGANIZATION_ID: ${{ secrets.SCW_DEFAULT_ORGANIZATION_ID }}

scaleway/resource_registry_namespace_beta_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ func testSweepRegistryNamespace(_ string) error {
3939
})
4040
}
4141

42-
func TestRegistryNamespaceBeta(t *testing.T) {
42+
func TestAccScalewayRegistryNamespace_Basic(t *testing.T) {
4343
resource.ParallelTest(t, resource.TestCase{
4444
PreCheck: func() { testAccPreCheck(t) },
4545
Providers: testAccProviders,

0 commit comments

Comments
 (0)