-
Notifications
You must be signed in to change notification settings - Fork 14
58 lines (57 loc) · 1.57 KB
/
e2eCas.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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
name: cas-e2e-test
on:
workflow_dispatch:
push:
tags:
- 'v0.10*'
env:
AWS_REGION: ${{ secrets.AWS_REGION }}
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
AWS_CONTROL_PLANE_MACHINE_TYPE: ${{ secrets.AWS_CONTROL_PLANE_MACHINE_TYPE }}
AWS_NODE_MACHINE_TYPE: ${{ secrets.AWS_NODE_MACHINE_TYPE }}
AWS_SSH_KEY_NAME: ${{ secrets.AWS_SSH_KEY_NAME }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # to take care of gh api rate limit when fetching capi provider manifests
GIT_USER: ${{ secrets.GIT_USER }}
GIT_EMAIL: ${{ secrets.GIT_EMAIL }}
GIT_PASSWORD: ${{ secrets.GIT_PASSWORD }}
jobs:
e2e:
environment: E2E Tests and Release
runs-on: ubuntu-latest
steps:
-
name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
-
name: Set up Go
uses: actions/setup-go@v3
with:
token: ${{ secrets.GITHUB_TOKEN }}
go-version: 1.19
check-latest: true
-
name: Print the version of golang
run: |
go version
-
name: Cache go modules
uses: actions/cache@v3
with:
path: |
~/.cache/go-build
~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
-
name: Run e2e-tests
run: |
make test-e2e-cas
-
name: Teardown
if: success() || failure()
run: |
make e2e-teardown-cas