Skip to content

Commit 3312d4b

Browse files
committed
test
1 parent 180606a commit 3312d4b

File tree

3 files changed

+64
-0
lines changed

3 files changed

+64
-0
lines changed

.github/workflows/test_a.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Lan test a
2+
3+
on:
4+
pull_request:
5+
6+
jobs:
7+
pre-test:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- name: Pre-test
11+
run: |
12+
echo "Pre-test"
13+
echo "${{ github.workflow }}-a-${{ github.event.pull_request.number || github.ref_name }}-${{ inputs.repository }}-${{ github.event_name == 'workflow_dispatch' }}-${{ inputs.job-name }}"
14+
15+
call-b:
16+
uses: ./.github/workflows/workflow-b.yml
17+
18+
call-c:
19+
uses: ./.github/workflows/workflow-c.yml
20+
21+
wait-all-jobs:
22+
needs: [call-b, call-c]
23+
runs-on: ubuntu-latest
24+
steps:
25+
- name: Wait for all jobs to complete
26+
run: |
27+
echo "Waiting for all jobs to complete..."
28+
29+
concurrency:
30+
group: ${{ github.workflow }}-a-${{ github.event.pull_request.number || github.ref_name }}-${{ inputs.repository }}-${{ github.event_name == 'workflow_dispatch' }}-${{ inputs.job-name }}
31+
cancel-in-progress: true
32+

.github/workflows/test_b.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: Lan test b
2+
3+
on:
4+
workflow_call:
5+
6+
jobs:
7+
test-b:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- name: Test b
11+
run: |
12+
echo "Test b"
13+
14+
concurrency:
15+
group: ${{ github.workflow }}-b-${{ github.event.pull_request.number || github.ref_name }}-${{ inputs.repository }}-${{ github.event_name == 'workflow_dispatch' }}-${{ inputs.job-name }}
16+
cancel-in-progress: true

.github/workflows/test_c.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: Lan test c
2+
3+
on:
4+
workflow_call:
5+
6+
jobs:
7+
test-b:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- name: Test c
11+
run: |
12+
echo "Test c"
13+
14+
concurrency:
15+
group: ${{ github.workflow }}-c-${{ github.event.pull_request.number || github.ref_name }}-${{ inputs.repository }}-${{ github.event_name == 'workflow_dispatch' }}-${{ inputs.job-name }}
16+
cancel-in-progress: true

0 commit comments

Comments
 (0)