-
Notifications
You must be signed in to change notification settings - Fork 4
59 lines (55 loc) · 1.81 KB
/
reusable--e2e-test.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
59
name: e2e-test
on:
workflow_call:
inputs:
runner-image-uri:
type: string
required: true
description: Image URI of runner
runner-ubuntu20-image-uri:
type: string
required: true
description: Image URI of runner (ubuntu20)
jobs:
controller:
runs-on: ubuntu-latest
timeout-minutes: 10
defaults:
run:
working-directory: e2e-test
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- uses: aquaproj/aqua-installer@6ce1f8848ec8e61f14d57bd5d7597057a6dd187c # v3.0.1
with:
aqua_version: v2.37.2
working_directory: e2e-test
- run: make cluster
- run: make create-github-config-secret
env:
APP_ID: ${{ secrets.E2E_TEST_APP_ID }}
APP_INSTALLATION_ID: ${{ secrets.E2E_TEST_APP_INSTALLATION_ID }}
APP_PRIVATE_KEY: ${{ secrets.E2E_TEST_APP_PRIVATE_KEY }}
- run: make deploy
env:
ARC_RUNNER_NAME: e2e-${{ github.run_id }}
ARC_RUNNER_IMAGE_URI: ${{ inputs.runner-image-uri}}
ARC_RUNNER_UBUNTU20_NAME: e2e-ubuntu20-${{ github.run_id }}
ARC_RUNNER_UBUNTU20_IMAGE_URI: ${{ inputs.runner-ubuntu20-image-uri }}
- run: make wait-for-job
env:
ARC_RUNNER_NAME: e2e-${{ github.run_id }}
ARC_RUNNER_UBUNTU20_NAME: e2e-ubuntu20-${{ github.run_id }}
- run: make undeploy
if: always()
- run: make logs
if: always()
test:
uses: ./.github/workflows/reusable--e2e-test-jobs.yaml
with:
runner-name: e2e-${{ github.run_id }}
expected-image-os: ubuntu22
test-ubuntu20:
uses: ./.github/workflows/reusable--e2e-test-jobs.yaml
with:
runner-name: e2e-ubuntu20-${{ github.run_id }}
expected-image-os: ubuntu20