-
Notifications
You must be signed in to change notification settings - Fork 10
49 lines (41 loc) · 1.31 KB
/
Copy pathvalidation-hyperstack.yml
File metadata and controls
49 lines (41 loc) · 1.31 KB
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
name: Hyperstack Validation Tests
on:
workflow_dispatch:
# Run explicitly from the Actions UI, GitHub CLI, or API.
jobs:
hyperstack-validation:
name: Hyperstack Provider Validation
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version-file: 'go.mod'
- name: Cache Go modules
uses: actions/cache@v4
with:
path: |
~/.cache/go-build
~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: Install dependencies
run: make deps
- name: Run Hyperstack validation tests
env:
HYPERSTACK_API_KEY: ${{ secrets.HYPERSTACK_API_KEY }}
TEST_PRIVATE_KEY_BASE64: ${{ secrets.TEST_PRIVATE_KEY_BASE64 }}
TEST_PUBLIC_KEY_BASE64: ${{ secrets.TEST_PUBLIC_KEY_BASE64 }}
VALIDATION_TEST: true
run: |
cd v1/providers/hyperstack
go test -v -short=false -timeout=30m ./...
- name: Upload test results
uses: actions/upload-artifact@v4
if: always()
with:
name: hyperstack-validation-results
path: |
v1/providers/hyperstack/coverage.out