-
Notifications
You must be signed in to change notification settings - Fork 1
43 lines (37 loc) · 1003 Bytes
/
terratest.yaml
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
# Workflow for testing resource usage to the Qernal
# cloud provider - this is a full E2E test to prove
# the working nature of all components and dependencies
name: Terratest E2E Tests
# TODO: correct ignores/additions
on:
pull_request:
paths-ignore:
- 'README.md'
push:
paths-ignore:
- 'README.md'
permissions:
contents: read
jobs:
terratest:
name: Test
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version-file: 'go.mod'
cache: true
- run: |
go mod download
make local-build
make local-install
- name: Run tests
run: |
go test ./tests -v
env:
# TODO: switch from the build environment
QERNAL_HOST_CHAOS: https://chaos.bld2.qernal-bld.dev
QERNAL_HOST_HYDRA: https://hydra.bld2.qernal-bld.dev
QERNAL_TOKEN: ${{ secrets.QERNAL_TOKEN }}