6666 run : |
6767 npm install
6868 npm run --if-present build
69- - run : npm run --if-present test:node -- --bail --cov
69+ - run : npm run --if-present test:node
7070 - uses : codecov/codecov-action@v1
7171
7272 test-chrome :
9494 run : |
9595 npm install
9696 npm run --if-present build
97- - run : npm run --if-present test:browser -- -t browser -t webworker --bail
97+ - run : npm run --if-present test:chrome
98+
99+ test-chrome-webworker :
100+ needs : check
101+ runs-on : ubuntu-latest
102+ steps :
103+ - uses : actions/checkout@v2
104+ - uses : actions/setup-node@v2
105+ with :
106+ node-version : lts/*
107+ - uses : actions/cache@v2
108+ id : cache
109+ env :
110+ CACHE_NAME : cache-node-modules
111+ with :
112+ path : |
113+ ~/.npm
114+ ./dist
115+ ./node_modules
116+ ./packages/*/dist
117+ ./packages/*/node_modules
118+ key : ${{ runner.os }}-build-${{ env.CACHE_NAME }}-${{ github.sha }}
119+ - name : Install Dependencies
120+ if : steps.cache.outputs.cache-hit != 'true'
121+ run : |
122+ npm install
123+ npm run --if-present build
124+ - run : npm run --if-present test:chrome-webworker
98125
99126 test-firefox :
100127 needs : check
@@ -121,7 +148,34 @@ jobs:
121148 run : |
122149 npm install
123150 npm run --if-present build
124- - run : npm run --if-present test:browser -- -t browser -t webworker --bail -- --browser firefox
151+ - run : npm run --if-present test:firefox
152+
153+ test-firefox-webworker :
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 : npm run --if-present test:firefox-webworker
125179
126180 test-electron-main :
127181 needs : check
@@ -148,7 +202,7 @@ jobs:
148202 run : |
149203 npm install
150204 npm run --if-present build
151- - run : npx xvfb-maybe npm run --if-present test:electron-main -- --bail
205+ - run : npx xvfb-maybe npm run --if-present test:electron-main
152206
153207 test-electron-renderer :
154208 needs : check
@@ -175,12 +229,12 @@ jobs:
175229 run : |
176230 npm install
177231 npm run --if-present build
178- - run : npx xvfb-maybe npm run --if-present test:electron-renderer -- --bail
232+ - run : npx xvfb-maybe npm run --if-present test:electron-renderer
179233
180234 release :
181- needs : [test-node, test-chrome, test-firefox, test-electron-main]
235+ needs : [test-node, test-chrome, test-chrome-webworker, test- firefox, test-firefox-webworker, test- electron-main, test-electron-renderer ]
182236 runs-on : ubuntu-latest
183- if : github.event_name == 'push' && github.ref == 'refs/heads/master' && !contains(github.event.head_commit.author.name, 'Github Actions')
237+ if : github.event_name == 'push' && github.ref == 'refs/heads/master'
184238 steps :
185239186240 with :
@@ -206,11 +260,6 @@ jobs:
206260 npm install
207261 npm run --if-present build
208262 - run : |
209- git config --global user.email "[email protected] " 210- git config --global user.name "Github Actions"
211- if [[ -n "${NPM_TOKEN}" ]]; then
212- echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" > .npmrc
213- fi
214263 if [[ -n "${DOCKER_TOKEN}" ]] && [[ -n "${DOCKER_USERNAME}" ]]; then
215264 echo "$DOCKER_TOKEN" | docker login -u "$DOCKER_USERNAME" --password-stdin
216265 fi
0 commit comments