File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -20,27 +20,43 @@ jobs:
2020 node-version : ${{ matrix.node-version }}
2121 - uses : actions/checkout@v2
2222 - run : npm ci
23- - run : npm run lint
2423 - run : npm run test:microtask
2524 - run : npm run test:immediate
2625 if : ${{ matrix.node-version != '10.x' }}
26+ - run : npx c8 --reporter=lcov mocha
27+ - uses : coverallsapp/github-action@master
28+ with :
29+ github-token : ${{ secrets.github_token }}
30+ flag-name : run-${{ matrix.node-version }}
31+ parallel : true
32+
33+ lint :
34+ runs-on : ubuntu-latest
35+ steps :
36+ - uses : actions/setup-node@v2
37+ with :
38+ node-version : 16.x
39+ - uses : actions/checkout@v2
40+ - run : npm ci
41+ - run : npm run lint
42+
43+ package :
44+ runs-on : ubuntu-latest
45+ steps :
46+ - uses : actions/setup-node@v2
47+ with :
48+ node-version : 16.x
49+ - uses : actions/checkout@v2
50+ - run : npm ci
2751 - run : npm pack
2852 - run : tar -xzf asynciterator-*.tgz
29- - name : Test package
30- if : ${{ matrix.node-version == '16.x' }}
31- run : |
53+ - run : npx tsc package/dist/asynciterator.d.ts
54+ - run : |
3255 pushd package
3356 node -e 'require(".")'
3457 echo 'import { AsyncIterator } from "asynciterator"' > test.mjs;
3558 node test.mjs;
3659 popd
37- - run : npx tsc package/dist/asynciterator.d.ts
38- - run : npx c8 --reporter=lcov mocha
39- - uses : coverallsapp/github-action@master
40- with :
41- github-token : ${{ secrets.github_token }}
42- flag-name : run-${{ matrix.node-version }}
43- parallel : true
4460
4561 coveralls :
4662 needs : test
7187
7288 gh-pages :
7389 needs :
74- - docs
90+ - lint
7591 - test
92+ - package
93+ - docs
7694 runs-on : ubuntu-latest
7795 if : startsWith(github.ref, 'refs/tags/v')
7896 steps :
You can’t perform that action at this time.
0 commit comments