Skip to content

Commit c643ff7

Browse files
committed
test
1 parent 341b4d9 commit c643ff7

File tree

4 files changed

+27
-10
lines changed

4 files changed

+27
-10
lines changed

.github/workflows/build-test-all.yml

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,18 +50,33 @@ jobs:
5050
echo "${MATRIX_BLOB}"
5151
echo "matrix=${MATRIX_BLOB}" >> "${GITHUB_OUTPUT}"
5252
53-
trigger-linux-test:
53+
fail-fast-test:
5454
needs: [filter-matrix]
5555
if: always()
56+
permissions:
57+
id-token: write
58+
contents: read
59+
packages: write
60+
runs-on: ubuntu-latest
61+
steps:
62+
- name: Fail fast test
63+
run: |
64+
echo "Fail fast test"
65+
66+
trigger-linux-test:
67+
needs: [fail-fast-test]
68+
if: always()
69+
name: build-test on linux-x86_64
5670
permissions:
5771
id-token: write
5872
contents: read
5973
packages: write
6074
uses: ./.github/workflows/build-test-linux-x86_64.yml
6175

6276
trigger-windows-test:
63-
needs: [filter-matrix]
77+
needs: [fail-fast-test]
6478
if: always()
79+
name: build-test on windows
6580
permissions:
6681
id-token: write
6782
contents: read

.github/workflows/test_a.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,19 +12,21 @@ jobs:
1212
echo "Pre-test"
1313
echo "${{ github.workflow }}-a-${{ github.event.pull_request.number || github.ref_name }}-${{ inputs.repository }}-${{ github.event_name == 'workflow_dispatch' }}-${{ inputs.job-name }}"
1414
15-
call-b:
15+
call-linux-x86_64:
16+
needs: pre-test
1617
uses: ./.github/workflows/test_b.yml
1718

18-
call-c:
19+
call-windows:
20+
needs: pre-test
1921
uses: ./.github/workflows/test_c.yml
2022

2123
wait-all-jobs:
22-
needs: [call-b, call-c]
24+
needs: [call-linux-x86_64, call-windows]
2325
runs-on: ubuntu-latest
2426
steps:
2527
- name: Wait for all jobs to complete
2628
run: |
27-
echo "Waiting for all jobs to complete..."
29+
echo "Waiting for all jobs to complete... ${{ github.workflow }} "
2830
2931
concurrency:
3032
group: ${{ github.workflow }}-a-${{ github.event.pull_request.number || github.ref_name }}-${{ inputs.repository }}-${{ github.event_name == 'workflow_dispatch' }}-${{ inputs.job-name }}

.github/workflows/test_b.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@ on:
44
workflow_call:
55

66
jobs:
7-
test-b:
7+
test:
88
runs-on: ubuntu-latest
99
steps:
1010
- name: Test b
1111
run: |
12-
echo "Test b"
12+
echo "Test b ${github.workflow}"
1313
1414
concurrency:
1515
group: ${{ github.workflow }}-b-${{ github.event.pull_request.number || github.ref_name }}-${{ inputs.repository }}-${{ github.event_name == 'workflow_dispatch' }}-${{ inputs.job-name }}

.github/workflows/test_c.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@ on:
44
workflow_call:
55

66
jobs:
7-
test-b:
7+
test:
88
runs-on: ubuntu-latest
99
steps:
1010
- name: Test c
1111
run: |
12-
echo "Test c"
12+
echo "Test c ${github.workflow} "
1313
1414
concurrency:
1515
group: ${{ github.workflow }}-c-${{ github.event.pull_request.number || github.ref_name }}-${{ inputs.repository }}-${{ github.event_name == 'workflow_dispatch' }}-${{ inputs.job-name }}

0 commit comments

Comments
 (0)