Skip to content

Commit 74aec9b

Browse files
committed
Added basic tests
1 parent 581fd85 commit 74aec9b

File tree

7 files changed

+5903
-1899
lines changed

7 files changed

+5903
-1899
lines changed

.github/workflows/npmpublish.yml

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,12 @@ jobs:
1717
node-version: 12
1818
- run: npm ci
1919
- run: npm run build
20+
- uses: actions/upload-artifact@master
21+
with:
22+
name: lib
23+
path: lib
2024

21-
publish-npm:
25+
test:
2226
needs: build
2327
runs-on: ubuntu-latest
2428
steps:
@@ -27,7 +31,23 @@ jobs:
2731
with:
2832
node-version: 12
2933
registry-url: https://registry.npmjs.org/
30-
- run: npm ci
34+
- uses: actions/download-artifact@v1
35+
with:
36+
name: lib
37+
- run: npm run test
38+
39+
publish-npm:
40+
needs: test
41+
runs-on: ubuntu-latest
42+
steps:
43+
- uses: actions/checkout@v2
44+
- uses: actions/setup-node@v1
45+
with:
46+
node-version: 12
47+
registry-url: https://registry.npmjs.org/
48+
- uses: actions/download-artifact@v1
49+
with:
50+
name: lib
3151
- run: npm publish
3252
env:
3353
NODE_AUTH_TOKEN: ${{secrets.npm_token}}

0 commit comments

Comments
 (0)