File tree Expand file tree Collapse file tree 1 file changed +14
-3
lines changed Expand file tree Collapse file tree 1 file changed +14
-3
lines changed Original file line number Diff line number Diff line change 2424 - name : Check formatting
2525 run : npm run format:check
2626 build-and-test :
27- need : lint
2827 runs-on : ubuntu-latest
2928 timeout-minutes : 5
3029 steps :
@@ -38,10 +37,22 @@ jobs:
3837 run : npm ci --ignore-scripts
3938 - name : Build
4039 run : npm run build
40+ test :
41+ runs-on : ubuntu-latest
42+ timeout-minutes : 5
43+ steps :
44+ - name : Checkout
45+ uses : actions/checkout@v2.3.2
46+ - name : Setup node
47+ uses : actions/setup-node@v2.1.1
48+ with :
49+ node-version : 12
50+ - name : Install project
51+ run : npm ci --ignore-scripts
4152 - name : Test
4253 run : npm run test:ci
4354 code-coverage :
44- need : build
55+ needs : [lint, build, test]
4556 runs-on : ubuntu-latest
4657 timeout-minutes : 5
4758 steps :
6172 token : ${{ secrets.CODECOV_TOKEN }}
6273 file : ./coverage/cobertura-coverage.xml
6374 release :
64- needs : [build, code-coverage]
75+ needs : [lint, build, test , code-coverage]
6576 runs-on : ubuntu-latest
6677 # GitHub API requests can easy take a couple of seconds and the release can
6778 # make lots of API requests when a release has a lot of commits. If every
You can’t perform that action at this time.
0 commit comments