-
Notifications
You must be signed in to change notification settings - Fork 1
41 lines (40 loc) · 1.3 KB
/
action.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
name: Test IPs
on: [push]
jobs:
Prepare-Tests-Matrix:
runs-on: ubuntu-latest
outputs:
test: ${{ steps.set-tests-matrix.outputs.test }}
steps:
- name: Check out repository code
uses: actions/checkout@v4
- name: Set Tests Matrix
id: set-tests-matrix
run: echo "test=$(python3 ./.github/scripts/get_tests_matrix.py)" >> "$GITHUB_OUTPUT"
Test1:
runs-on: ubuntu-latest
needs: [Prepare-Tests-Matrix]
name: ${{ matrix.tests.name }}/${{ matrix.tests.test-names }}
strategy:
fail-fast: false
matrix: ${{ fromJSON(needs.Prepare-Tests-Matrix.outputs.test) }}
steps:
- name: Check out repository code
uses: actions/checkout@v4
- name: Run Test
uses: ./.github/actions/run-test
with:
url: ${{ matrix.tests.url }}
test-names: ${{ matrix.tests.test-names }}
name: ${{ matrix.tests.name }}
# Test2:
# strategy:
# fail-fast: false
# matrix: ${{ fromJSON(needs.Prepare-Tests-Matrix.outputs.test) }}
# needs: [Prepare-Tests-Matrix]
# name: Run Test (Separate workflow)
# uses: ./.github/workflows/run_test.yaml
# with:
# url: ${{ matrix.tests.url }}
# test-names: ${{ matrix.tests.test-names }}
# name: ${{ matrix.tests.name }}