@@ -13,12 +13,12 @@ jobs:
13
13
runs-on : ${{ matrix.os }}
14
14
strategy :
15
15
matrix :
16
- os : [ubuntu-latest]
16
+ os : [ubuntu-latest, macOS-latest, windows-latest ]
17
17
steps :
18
18
- uses : actions/checkout@v1
19
19
# # Move this action to just before the failing step to debug it.
20
20
# - name: Setup tmate session for remote debugging
21
- # uses: mxschmitt/action-tmate@v1
21
+ # uses: mxschmitt/action-tmate@v3
22
22
- name : Cache node_modules
23
23
uses : actions/cache@v1
24
24
with :
@@ -39,20 +39,20 @@ jobs:
39
39
node-version : ' 12.x'
40
40
- name : Install
41
41
run : yarn
42
- # - name: Lint
43
- # run: yarn lint
44
- # - name: Start background server
45
- # run: yarn sc start
42
+ - name : Lint
43
+ run : yarn lint
44
+ - name : Start background server
45
+ run : yarn sc start
46
46
- name : Build
47
47
run : yarn build
48
- # - name: Test
49
- # run: yarn test:once
50
- # - name: E2E
51
- # run: yarn e2e
48
+ - name : Test
49
+ run : yarn test:once
50
+ - name : E2E
51
+ run : yarn e2e
52
52
- name : Archive Production Artifact
53
53
# Only upload the Linux build.
54
54
if : matrix.os == 'ubuntu-latest'
55
- uses : actions/upload-artifact@v2
55
+ uses : actions/upload-artifact@master
56
56
with :
57
57
name : dist
58
58
path : dist
@@ -64,29 +64,20 @@ jobs:
64
64
steps :
65
65
- uses : actions/checkout@v1
66
66
- name : Download Artifact
67
- uses : actions/download-artifact@v2
68
- with :
69
- name : dist
70
- - name : Setup tmate session for remote debugging
71
- uses : mxschmitt/action-tmate@v3
72
- - name : Display structure of downloaded files
73
- run : ls -R
74
- working-directory : dist
67
+ uses : actions/download-artifact@master
75
68
- name : Semantic Release
76
69
uses : cycjimmy/semantic-release-action@v2
77
70
id : semantic
71
+ env :
72
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
73
+ NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
74
+ # Test the release if one was made.
75
+ # Would be nice to group these steps on the `if` conditional, but no way to do it yet.
76
+ - name : Use Node.js 12.x
77
+ if : steps.semantic.outputs.new_release_published == 'true'
78
+ uses : actions/setup-node@v1
78
79
with :
79
- dry_run : true
80
- # env:
81
- # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
82
- # NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
83
- # # Test the release if one was made.
84
- # # Would be nice to group these steps on the `if` conditional, but no way to do it yet.
85
- # - name: Use Node.js 12.x
86
- # if: steps.semantic.outputs.new_release_published == 'true'
87
- # uses: actions/setup-node@v1
88
- # with:
89
- # node-version: '10.x'
90
- # - name: Try to use release
91
- # if: steps.semantic.outputs.new_release_published == 'true'
92
- # run: yarn create cljs-app my-cljs-app
80
+ node-version : ' 10.x'
81
+ - name : Try to use release
82
+ if : steps.semantic.outputs.new_release_published == 'true'
83
+ run : yarn create cljs-app my-cljs-app
0 commit comments