File tree Expand file tree Collapse file tree 1 file changed +38
-1
lines changed Expand file tree Collapse file tree 1 file changed +38
-1
lines changed Original file line number Diff line number Diff line change 2323 run : npm run lint-es
2424 - name : Check formatting
2525 run : npm run format:check
26+ build-and-test :
27+ need : lint
28+ runs-on : ubuntu-latest
29+ timeout-minutes : 5
30+ steps :
31+ - name : Checkout
32+ uses : actions/checkout@v2.3.2
33+ - name : Setup node
34+ uses : actions/setup-node@v2.1.1
35+ with :
36+ node-version : 12
37+ - name : Install project
38+ run : npm ci --ignore-scripts
39+ - name : Build
40+ run : npm run build
41+ - name : Test
42+ run : npm run test:ci
43+ code-coverage :
44+ need : build
45+ runs-on : ubuntu-latest
46+ timeout-minutes : 5
47+ steps :
48+ - name : Checkout
49+ uses : actions/checkout@v2.3.2
50+ - name : Setup node
51+ uses : actions/setup-node@v2.1.1
52+ with :
53+ node-version : 12
54+ - name : Install project
55+ run : npm ci --ignore-scripts
56+ - name : Test
57+ run : npm run test:ci
58+ - name : Upload coverage to Codecov
59+ uses : codecov/codecov-action@v1.0.10
60+ with :
61+ token : ${{ secrets.CODECOV_TOKEN }}
62+ file : ./coverage/cobertura-coverage.xml
2663 release :
27- needs : lint
64+ needs : [build, code-coverage]
2865 runs-on : ubuntu-latest
2966 # GitHub API requests can easy take a couple of seconds and the release can
3067 # 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