1- name : build
2- on :
3- push :
4- branches :
5- - " **"
61jobs :
72 cancel-existing :
3+ if : " !contains(github.event.head_commit.message, '[skip ci]')"
84 runs-on : ubuntu-latest
95 steps :
10- -
uses :
rokroskar/[email protected] 11- env :
6+ - env :
127 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
13- test :
14- needs : cancel-existing
15- strategy :
16- matrix :
17- os :
18- - macos-latest
19- - windows-latest
20- - ubuntu-latest
21- node :
22- - 10
23- - 12
24- exclude :
25- - os : macos-latest
26- node : 10
27- - os : windows-latest
28- node : 10
29- runs-on : ${{ matrix.os }}
30- steps :
31- - uses : actions/checkout@v2
32- - uses : actions/setup-node@v1
33- with :
34- node-version : ${{ matrix.node }}
35- -
run :
git config --global user.email "[email protected] " 36- - run : git config --global user.name "GitHub Actions"
37- - run : yarn --frozen-lockfile
38- - run : yarn test
39- - name : Coveralls
40- if : matrix.os == 'ubuntu-latest' && matrix.node == 12
41- run : yarn dw-ci coveralls
42- env :
43- COVERALLS_REPO_TOKEN : ${{ secrets.GITHUB_TOKEN }}
44- COVERALLS_SERVICE_NAME : github
45- COVERALLS_GIT_COMMIT : ${{ github.sha }}
46- COVERALLS_GIT_BRANCH : ${{ github.ref }}
8+ 479 release :
48- needs : test
4910 if : github.ref == 'refs/heads/master'
11+ needs : test
5012 runs-on : ubuntu-latest
5113 steps :
5214 - uses : actions/checkout@v2
@@ -56,14 +18,55 @@ jobs:
5618 -
run :
git config --global user.email "[email protected] " 5719 - run : git config --global user.name "GitHub Actions"
5820 - run : yarn --frozen-lockfile
21+ - run : yarn clean
5922 - run : yarn lint
60- - name : Push changed files
61- run : yarn dw-ci push-changed-files
62- env :
63- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
23+ - env :
6424 GITHUB_REPOSITORY : ${{ secrets.GITHUB_REPOSITORY }}
65- - name : Release
66- env :
25+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
26+ name : Push changed files
27+ run : yarn dw-ci push-changed-files
28+ - env :
6729 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
6830 NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
31+ name : Release
6932 run : yarn semantic-release
33+ test :
34+ needs : cancel-existing
35+ runs-on : ${{ matrix.os }}
36+ steps :
37+ - uses : actions/checkout@v2
38+ - uses : actions/setup-node@v1
39+ with :
40+ node-version : ${{ matrix.node }}
41+ -
run :
git config --global user.email "[email protected] " 42+ - run : git config --global user.name "GitHub Actions"
43+ - run : yarn --frozen-lockfile
44+ - run : yarn clean
45+ - run : yarn test
46+ - env :
47+ COVERALLS_GIT_BRANCH : ${{ github.ref }}
48+ COVERALLS_GIT_COMMIT : ${{ github.sha }}
49+ COVERALLS_REPO_TOKEN : ${{ secrets.GITHUB_TOKEN }}
50+ COVERALLS_SERVICE_NAME : github
51+ if : matrix.os == 'ubuntu-latest' && matrix.node == 12
52+ name : Coveralls
53+ run : yarn dw-ci coveralls
54+ strategy :
55+ matrix :
56+ exclude :
57+ - node : 10
58+ os : macos-latest
59+ - node : 10
60+ os : windows-latest
61+ node :
62+ - 10
63+ - 12
64+ os :
65+ - macos-latest
66+ - windows-latest
67+ - ubuntu-latest
68+ name : build
69+ on :
70+ push :
71+ branches :
72+ - " **"
0 commit comments