27
27
./node_modules
28
28
./packages/*/dist
29
29
./packages/*/node_modules
30
- key : ${{ runner.os }}-build-${{ env.CACHE_NAME }}-${{ github.event.pull_request.head. sha }}
30
+ key : ${{ runner.os }}-build-${{ env.CACHE_NAME }}-${{ github.sha }}
31
31
- name : Install Dependencies
32
32
if : steps.cache.outputs.cache-hit != 'true'
33
33
run : |
60
60
./node_modules
61
61
./packages/*/dist
62
62
./packages/*/node_modules
63
- key : ${{ runner.os }}-build-${{ env.CACHE_NAME }}-${{ github.event.pull_request.head. sha }}
63
+ key : ${{ runner.os }}-build-${{ env.CACHE_NAME }}-${{ github.sha }}
64
64
- name : Install Dependencies
65
65
if : steps.cache.outputs.cache-hit != 'true'
66
66
run : |
88
88
./node_modules
89
89
./packages/*/dist
90
90
./packages/*/node_modules
91
- key : ${{ runner.os }}-build-${{ env.CACHE_NAME }}-${{ github.event.pull_request.head. sha }}
91
+ key : ${{ runner.os }}-build-${{ env.CACHE_NAME }}-${{ github.sha }}
92
92
- name : Install Dependencies
93
93
if : steps.cache.outputs.cache-hit != 'true'
94
94
run : |
@@ -115,7 +115,7 @@ jobs:
115
115
./node_modules
116
116
./packages/*/dist
117
117
./packages/*/node_modules
118
- key : ${{ runner.os }}-build-${{ env.CACHE_NAME }}-${{ github.event.pull_request.head. sha }}
118
+ key : ${{ runner.os }}-build-${{ env.CACHE_NAME }}-${{ github.sha }}
119
119
- name : Install Dependencies
120
120
if : steps.cache.outputs.cache-hit != 'true'
121
121
run : |
@@ -142,39 +142,40 @@ jobs:
142
142
./node_modules
143
143
./packages/*/dist
144
144
./packages/*/node_modules
145
- key : ${{ runner.os }}-build-${{ env.CACHE_NAME }}-${{ github.event.pull_request.head. sha }}
145
+ key : ${{ runner.os }}-build-${{ env.CACHE_NAME }}-${{ github.sha }}
146
146
- name : Install Dependencies
147
147
if : steps.cache.outputs.cache-hit != 'true'
148
148
run : |
149
149
npm install
150
150
npm run --if-present build
151
151
- run : npx xvfb-maybe npm run --if-present test:electron-main --bail
152
152
153
- # test-electron-renderer:
154
- # needs: check
155
- # runs-on: ubuntu-latest
156
- # steps:
157
- # - uses: actions/checkout@v2
158
- # - uses: actions/setup-node@v2
159
- # with:
160
- # node-version: lts/*
161
- # - uses: actions/cache@v2
162
- # id: cache
163
- # env:
164
- # CACHE_NAME: cache-node-modules
165
- # with:
166
- # path: |
167
- # ~/.npm
168
- # ./node_modules
169
- # ./packages/*/node_modules
170
- # ./packages/*/dist
171
- # key: ${{ runner.os }}-build-${{ env.CACHE_NAME }}-${{ github.event.pull_request.head.sha }}
172
- # - name: Install Dependencies
173
- # if: steps.cache.outputs.cache-hit != 'true'
174
- # run: |
175
- # npm run --if-present build
176
- # npm install
177
- # - run: npx xvfb-maybe npm run --if-present test:electron-renderer --bail
153
+ test-electron-renderer :
154
+ needs : check
155
+ runs-on : ubuntu-latest
156
+ steps :
157
+ - uses : actions/checkout@v2
158
+ - uses : actions/setup-node@v2
159
+ with :
160
+ node-version : lts/*
161
+ - uses : actions/cache@v2
162
+ id : cache
163
+ env :
164
+ CACHE_NAME : cache-node-modules
165
+ with :
166
+ path : |
167
+ ~/.npm
168
+ ./dist
169
+ ./node_modules
170
+ ./packages/*/dist
171
+ ./packages/*/node_modules
172
+ key : ${{ runner.os }}-build-${{ env.CACHE_NAME }}-${{ github.sha }}
173
+ - name : Install Dependencies
174
+ if : steps.cache.outputs.cache-hit != 'true'
175
+ run : |
176
+ npm install
177
+ npm run --if-present build
178
+ - run : npx xvfb-maybe npm run --if-present test:electron-renderer --bail
178
179
179
180
release :
180
181
needs : [test-node, test-chrome, test-firefox, test-electron-main]
@@ -198,7 +199,7 @@ jobs:
198
199
./node_modules
199
200
./packages/*/dist
200
201
./packages/*/node_modules
201
- key : ${{ runner.os }}-build-${{ env.CACHE_NAME }}-${{ github.event.pull_request.head. sha }}
202
+ key : ${{ runner.os }}-build-${{ env.CACHE_NAME }}-${{ github.sha }}
202
203
- name : Install Dependencies
203
204
if : steps.cache.outputs.cache-hit != 'true'
204
205
run : |
0 commit comments