File tree Expand file tree Collapse file tree 1 file changed +8
-24
lines changed
Expand file tree Collapse file tree 1 file changed +8
-24
lines changed Original file line number Diff line number Diff line change @@ -24,29 +24,13 @@ jobs:
2424 - name : lintspaces
2525 run : |
2626 lintspaces -nt -d 'spaces' -i 'js-comments' src/*/* src/*.ts view/* manifest-*.json css/popup.css css/import.css
27- build-ffx :
27+ build :
2828 runs-on : ubuntu-latest
29- name : Build Firefox & run addons-linter
29+ name : Build ${{ matrix.platform }}
3030
31- steps :
32- - uses : actions/checkout@v2
33-
34- - name : Setup Node.js environment
35- uses : actions/setup-node@v2.1.2
36-
37- - name : Install dependencies
38- run : |
39- npm ci
40- sudo npm i --only=production -g addons-linter
41-
42- - name : Build
43- run : npm run firefox
44-
45- - name : Run addons-linter
46- run : addons-linter firefox
47- build-chrome :
48- runs-on : ubuntu-latest
49- name : Build Chrome
31+ strategy :
32+ matrix :
33+ platform : ["chrome", "firefox"]
5034
5135 steps :
5236 - uses : actions/checkout@v2
@@ -58,11 +42,11 @@ jobs:
5842 run : npm ci
5943
6044 - name : Build
61- run : npm run chrome
45+ run : npm run ${{ matrix.platform }}
6246 run-tests :
6347 runs-on : ubuntu-latest
6448 name : Run tests
65- needs : [ build-chrome, build-ffx ]
49+ needs : [ build ]
6650
6751 steps :
6852 - uses : actions/checkout@v2
8165 args : npm test
8266
8367 - name : Codecov
84- uses : codecov/codecov-action@v1.1.0
68+ uses : codecov/codecov-action@v1.1.0
You can’t perform that action at this time.
0 commit comments