forked from hashicorp/vault
-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (40 loc) · 1.49 KB
/
enos-release-testing-oss.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
name: enos-release-testing-oss
on:
repository_dispatch:
types:
- enos-release-testing-oss
- enos-release-testing-oss::*
jobs:
metadata:
if: ${{ startsWith(github.event.client_payload.payload.branch, 'release/') }}
runs-on: ubuntu-latest
outputs:
matrix-test-group: ${{ steps.matrix-group.outputs.matrix-test-group }}
steps:
- uses: actions/checkout@v3
- id: matrix-group
env:
# MATRIX_MAX_TEST_GROUPS is required to determine the randomly selected
# test group. It should be set to the highest test_group used in the
# enos-run-matrices.
MATRIX_MAX_TEST_GROUPS: 2
run: echo "matrix-test-group=$(make ci-get-matrix-group-id)" >> $GITHUB_OUTPUT
test:
name: Test ${{ matrix.matrix-file-name }}
if: ${{ startsWith(github.event.client_payload.payload.branch, 'release/') }}
needs: metadata
uses: ./.github/workflows/enos-run.yml
strategy:
fail-fast: false
matrix:
include:
- matrix-file-name: enos_release_testing_oss-artifactory-oss-linux-amd64-zip
test-name: Linux AMD64 Zip
- matrix-file-name: enos_release_testing_oss-artifactory-oss-linux-arm64-zip
test-name: Linux ARM64 Zip
with:
matrix-file-name: ${{ matrix.test-name }}
matrix-test-group: ${{ needs.metadata.outputs.matrix-test-group }}
vault-edition: oss
vault-revision: ${{ github.event.client_payload.payload.sha }}
secrets: inherit