-
Notifications
You must be signed in to change notification settings - Fork 11
53 lines (48 loc) · 1.43 KB
/
server.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
53
name: Test server ds/rs
on:
workflow_dispatch:
push:
branches:
- master
- 'v*'
paths:
- "**.go"
- ".github/workflows/server.yml"
pull_request:
branches:
- master
- 'v*'
paths:
- "**gridscale_server**"
- "gridscale/relation-manager/**"
- "gridscale/firewall-utils/**"
- "gridscale/error-handler/**"
- "gridscale/server_concurrency_handler.go"
- "gridscale/common.go"
- "gridscale/config.go"
- "gridscale/provider.go"
- "gridscale/provider_test.go"
- ".github/workflows/server.yml"
jobs:
build:
name: GS server 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 TestAccdataSourceGridscaleServerBasic
run: make testacc TEST=./gridscale TESTARGS='-run=TestAccdataSourceGridscaleServerBasic'
- name: Run TestAccResourceGridscaleServerBasic
run: make testacc TEST=./gridscale TESTARGS='-run=TestAccResourceGridscaleServerBasic'