-
Notifications
You must be signed in to change notification settings - Fork 11
51 lines (45 loc) · 1.49 KB
/
backup.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
name: Test backup/backup schedule ds
on:
workflow_dispatch:
push:
branches:
- master
paths:
- "**.go"
- ".github/workflows/backup.yml"
pull_request:
branches:
- master
paths:
- "**gridscale_backup**"
- "gridscale/error-handler/**"
- "gridscale/common.go"
- "gridscale/config.go"
- "gridscale/provider.go"
- "gridscale/provider_test.go"
- ".github/workflows/backup.yml"
jobs:
build:
name: Backup/Backup schedule AccTest
runs-on: ubuntu-latest
env:
GOPATH: /home/runner/go
GRIDSCALE_UUID: ${{ secrets.CI_USER_UUID }}
GRIDSCALE_TOKEN: ${{ secrets.CI_API_TOKEN }}
GRIDSCALE_URL: ${{ secrets.CI_API_URL }}
GRIDSCALE_TF_REQUEST_DELAY_INTERVAL: 2000
GRIDSCALE_TF_MAX_N_RETRIES: 5
steps:
- name: Set up Go 1.21
uses: actions/setup-go@v5
with:
go-version: ^1.21
id: go
- name: Check out code into the Go module directory
uses: actions/checkout@v4
- name: Run TestAccdataSourceGridscaleBackupBasic
run: make testacc TEST=./gridscale TESTARGS='-run=TestAccdataSourceGridscaleBackupBasic'
- name: Run TestAccdataSourceGridscaleBackupScheduleBasic
run: make testacc TEST=./gridscale TESTARGS='-run=TestAccdataSourceGridscaleBackupScheduleBasic'
- name: Run TestAccResourceGridscaleBackupScheduleBasic
run: make testacc TEST=./gridscale TESTARGS='-run=TestAccResourceGridscaleBackupScheduleBasic'