File tree 1 file changed +23
-4
lines changed
1 file changed +23
-4
lines changed Original file line number Diff line number Diff line change 14
14
PULUMI_TEST_OWNER : " moolumi"
15
15
16
16
jobs :
17
+ setup_matrix :
18
+ runs-on : ubuntu-latest
19
+ outputs :
20
+ matrix : ${{ steps.set-matrix.outputs.matrix }}
21
+ steps :
22
+ - id : set-matrix
23
+ run : |
24
+ os=${{ contains(github.event.pull_request.labels.*.name, 'ci/test') && 'macos-latest windows-latest' || 'ubuntu-latest' }}
25
+ echo "matrix={\"os\": $(echo $os | jq -cR 'split(" ")')}" >> $GITHUB_OUTPUT
26
+
27
+ debug :
28
+ runs-on : ubuntu-latest
29
+ needs : setup_matrix
30
+ steps :
31
+ - name : Debug
32
+ run : echo "${{ needs.setup_matrix.outputs.matrix }}"
33
+
17
34
build :
35
+ needs : setup_matrix
18
36
strategy :
19
37
matrix :
38
+ os : ${{ fromJson(needs.setup_matrix.outputs.matrix).os }}
20
39
dotnet-version : [6.0.x, 8.0.x]
21
40
22
- runs-on : ubuntu-latest
41
+ runs-on : ${{ matrix.os }}
23
42
steps :
24
43
- name : Checkout code
25
44
uses : actions/checkout@v4
47
66
token : ${{ secrets.CODECOV_TOKEN }}
48
67
integration-tests :
49
68
strategy :
50
- matrix :
51
- os : [ubuntu-latest, windows-latest, macos-11]
52
- dotnet-version : [6.0.x, 8.0.x]
69
+ matrix :
70
+ os : [ubuntu-latest, windows-latest, macos-11]
71
+ dotnet-version : [6.0.x, 8.0.x]
53
72
runs-on : ${{ matrix.os }}
54
73
steps :
55
74
- name : Checkout code
You can’t perform that action at this time.
0 commit comments