14
14
strategy :
15
15
matrix :
16
16
os : [ubuntu-latest, windows-latest, macos-latest]
17
- action : [report, done] # Note: We're also testing 'install' since it's implicitly in each of these two actions
17
+ action : [report, done, build-number ] # Note: We're also testing 'install' since it's implicit in each action
18
18
fail_on_error : [true, false]
19
19
steps :
20
20
- name : Checkout code
@@ -36,36 +36,14 @@ jobs:
36
36
run : |
37
37
echo "Running on Windows"
38
38
39
- - name : Run Test Action
39
+ - name : Test Action
40
40
uses : ./
41
41
with :
42
42
github-token : ${{ secrets.GITHUB_TOKEN }}
43
43
fail-on-error : ${{ matrix.fail_on_error }}
44
44
debug : true
45
- parallel-finished : ${{ matrix.action == 'done' }} # Only set 'parallel-finished' to true when testing 'done'
45
+ build-number : ${{ matrix.action == 'build-number' && github.sha || '' }} # Only set 'build-number' to `${{ github.sha }}` when testing `build-number`
46
+ parallel-finished : ${{ matrix.action == 'done' }} # Only set `parallel-finished` to `true` when testing `done`
46
47
env :
47
48
CI : true
48
49
continue-on-error : ${{ matrix.fail_on_error }}
49
-
50
- - name : Test report with build-number input option
51
- if : ${{ matrix.action == 'report' }}
52
- uses : ./
53
- with :
54
- github-token : ${{ secrets.GITHUB_TOKEN }}
55
- fail-on-error : ${{ matrix.fail_on_error }}
56
- debug : true
57
- build-number : ${{ github.sha }}
58
- env :
59
- CI : true
60
-
61
- - name : Test done with build-number input option
62
- if : ${{ matrix.action == 'done' }}
63
- uses : ./
64
- with :
65
- github-token : ${{ secrets.GITHUB_TOKEN }}
66
- fail-on-error : ${{ matrix.fail_on_error }}
67
- debug : true
68
- parallel-finished : true
69
- build-number : ${{ github.sha }}
70
- env :
71
- CI : true
0 commit comments