2020 runs-on : ubuntu-latest
2121 steps :
2222 - uses : actions/checkout@v3
23- - uses : actions/setup-node@v3
24- with :
25- node-version : 16.x
26- - run : npm ci
27- - run : npm run build
28- - run : npm run format-check
29- - run : npm run lint
30- - run : npm run test
31- - uses : actions/upload-artifact@v3
32- with :
33- name : dist
34- path : dist
3523 - uses : actions/upload-artifact@v3
3624 with :
3725 name : action.yml
@@ -40,21 +28,15 @@ jobs:
4028 test :
4129 if : github.event_name == 'push' || github.event.pull_request.head.repo.full_name == github.repository
4230 needs : [build]
43- runs-on : ubuntu-latest
4431 strategy :
4532 matrix :
46- target : [built, committed]
33+ os : [windows-latest, ubuntu-latest, macos-latest]
34+ runs-on : ${{ matrix.os }}
4735 steps :
4836 - uses : actions/checkout@v3
4937 with :
5038 ref : main
51- - if : matrix.target == 'built' || github.event_name == 'pull_request'
52- uses : actions/download-artifact@v3
53- with :
54- name : dist
55- path : dist
56- - if : matrix.target == 'built' || github.event_name == 'pull_request'
57- uses : actions/download-artifact@v3
39+ - uses : actions/download-artifact@v3
5840 with :
5941 name : action.yml
6042 path : .
@@ -66,43 +48,19 @@ jobs:
6648 id : cpr
6749 uses : peter-evans/create-pull-request@v4
6850 with :
69- commit-message : ' [CI] test ${{ matrix.target }}'
70- title : ' [CI] test ${{ matrix.target }}'
51+ commit-message : ' [CI] test ${{ matrix.os }}'
52+ title : ' [CI] test ${{ matrix.os }}'
7153 body : |
72- - CI test case for target '${{ matrix.target }}'
54+ - CI test case for target '${{ matrix.os }}'
7355
7456 Auto-generated by [create-pull-request][1]
7557
7658 [1]: https://github.com/peter-evans/create-pull-request
77- branch : ci-test-${{ matrix.target }}-${{ github.sha }}
59+ branch : ci-test-${{ matrix.os }}-${{ github.sha }}
7860
7961 - name : Close Pull
8062 uses : ./
8163 with :
8264 pull-request-number : ${{ steps.cpr.outputs.pull-request-number }}
83- comment : ' [CI] test ${{ matrix.target }}'
65+ comment : ' [CI] test ${{ matrix.os }}'
8466 delete-branch : true
85-
86- package :
87- if : github.event_name == 'push' && github.ref == 'refs/heads/main'
88- needs : [test]
89- runs-on : ubuntu-latest
90- steps :
91- - uses : actions/checkout@v3
92- - uses : actions/download-artifact@v3
93- with :
94- name : dist
95- path : dist
96- - name : Create Pull Request
97- uses : peter-evans/create-pull-request@v4
98- with :
99- token : ${{ secrets.ACTIONS_BOT_TOKEN }}
100- commit-message : Update distribution
101- title : Update distribution
102- body : |
103- - Updates the distribution for changes on `main`
104-
105- Auto-generated by [create-pull-request][1]
106-
107- [1]: https://github.com/peter-evans/create-pull-request
108- branch : update-distribution
0 commit comments