Skip to content

Commit ae2a8fd

Browse files
committed
Fix test cases
1 parent a0db2af commit ae2a8fd

File tree

3 files changed

+12
-53
lines changed

3 files changed

+12
-53
lines changed

.github/workflows/test-disabled.yml

+4-24
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ jobs:
99
name: get-matrix
1010
outputs:
1111
matrix: ${{ steps.set-matrix.outputs.matrix }}
12+
has_refs: ${{ steps.set-matrix.outputs.has_refs }}
1213
steps:
1314
- name: Checkout repository
1415
uses: actions/checkout@v3
@@ -29,28 +30,7 @@ jobs:
2930
runs-on: ubuntu-latest
3031
name: info
3132
steps:
32-
- name: Show outputs (raw)
33+
- name: Show outputs
3334
run: |
34-
echo ${{ needs.get-matrix.outputs.matrix }}
35-
- name: Show outputs (json)
36-
run: |
37-
echo ${{ fromJson(needs.get-matrix.outputs.matrix) }}
38-
39-
build:
40-
needs: [get-matrix]
41-
runs-on: ubuntu-latest
42-
name: build
43-
strategy:
44-
fail-fast: false
45-
matrix:
46-
refs:
47-
- ${{ fromJson(needs.get-matrix.outputs.matrix) }}
48-
steps:
49-
- name: "[SETUP] Checkout repository (ref: ${{ matrix.refs }})"
50-
uses: actions/checkout@v3
51-
with:
52-
fetch-depth: 0
53-
ref: ${{ matrix.refs }}
54-
- name: Show git
55-
run: |
56-
git log | head -20
35+
echo 'matrix=${{ needs.get-matrix.outputs.matrix }}'
36+
echo 'has_refs=${{ needs.get-matrix.outputs.has_refs }}'

.github/workflows/test-with-refs.yml

+4-5
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ jobs:
99
name: get-matrix
1010
outputs:
1111
matrix: ${{ steps.set-matrix.outputs.matrix }}
12+
has_refs: ${{ steps.set-matrix.outputs.has_refs }}
1213
steps:
1314
- name: Checkout repository
1415
uses: actions/checkout@v3
@@ -28,12 +29,10 @@ jobs:
2829
runs-on: ubuntu-latest
2930
name: info
3031
steps:
31-
- name: Show outputs (raw)
32+
- name: Show outputs
3233
run: |
33-
echo ${{ needs.get-matrix.outputs.matrix }}
34-
- name: Show outputs (json)
35-
run: |
36-
echo ${{ fromJson(needs.get-matrix.outputs.matrix) }}
34+
echo 'matrix=${{ needs.get-matrix.outputs.matrix }}'
35+
echo 'has_refs=${{ needs.get-matrix.outputs.has_refs }}'
3736
3837
build:
3938
needs: [get-matrix]

.github/workflows/test-without-refs.yml

+4-24
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ jobs:
99
name: get-matrix
1010
outputs:
1111
matrix: ${{ steps.set-matrix.outputs.matrix }}
12+
has_refs: ${{ steps.set-matrix.outputs.has_refs }}
1213
steps:
1314
- name: Checkout repository
1415
uses: actions/checkout@v3
@@ -28,28 +29,7 @@ jobs:
2829
runs-on: ubuntu-latest
2930
name: info
3031
steps:
31-
- name: Show outputs (raw)
32+
- name: Show outputs
3233
run: |
33-
echo ${{ needs.get-matrix.outputs.matrix }}
34-
- name: Show outputs (json)
35-
run: |
36-
echo ${{ fromJson(needs.get-matrix.outputs.matrix) }}
37-
38-
build:
39-
needs: [get-matrix]
40-
runs-on: ubuntu-latest
41-
name: build
42-
strategy:
43-
fail-fast: false
44-
matrix:
45-
refs:
46-
- ${{ fromJson(needs.get-matrix.outputs.matrix) }}
47-
steps:
48-
- name: "[SETUP] Checkout repository (ref: ${{ matrix.refs }})"
49-
uses: actions/checkout@v3
50-
with:
51-
fetch-depth: 0
52-
ref: ${{ matrix.refs }}
53-
- name: Show git
54-
run: |
55-
git log | head -20
34+
echo 'matrix=${{ needs.get-matrix.outputs.matrix }}'
35+
echo 'has_refs=${{ needs.get-matrix.outputs.has_refs }}'

0 commit comments

Comments
 (0)