-
Notifications
You must be signed in to change notification settings - Fork 11
52 lines (45 loc) · 1.6 KB
/
snapshot.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
name: Test snapshot/snapshot schedule ds/rs
on:
workflow_dispatch:
push:
branches:
- master
paths:
- "**.go"
- ".github/workflows/snapshot.yml"
pull_request:
branches:
- master
paths:
- "**gridscale_snapshot**"
- "gridscale/error-handler/**"
- "gridscale/common.go"
- "gridscale/config.go"
- "gridscale/provider.go"
- "gridscale/provider_test.go"
- ".github/workflows/snapshot.yml"
jobs:
build:
name: Snapshot/Snapshot 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 }}
steps:
- name: Set up Go 1.17
uses: actions/setup-go@v2
with:
go-version: ^1.17
id: go
- name: Check out code into the Go module directory
uses: actions/checkout@v2
- name: Run TestAccdataSourceGridscaleSnapshot_basic
run: make testacc TEST=./gridscale TESTARGS='-run=TestAccdataSourceGridscaleSnapshot_basic'
- name: Run TestAccdataSourceGridscaleSnapshotSchedule_basic
run: make testacc TEST=./gridscale TESTARGS='-run=TestAccdataSourceGridscaleSnapshotSchedule_basic'
- name: Run TestAccResourceGridscaleSnapshot_Basic
run: make testacc TEST=./gridscale TESTARGS='-run=TestAccResourceGridscaleSnapshot_Basic'
- name: Run TestAccResourceGridscaleSnapshotSchedule_Basic
run: make testacc TEST=./gridscale TESTARGS='-run=TestAccResourceGridscaleSnapshotSchedule_Basic'