Skip to content

Commit 515f725

Browse files
committed
Moved tests to PR and push
1 parent 74aec9b commit 515f725

File tree

2 files changed

+24
-14
lines changed

2 files changed

+24
-14
lines changed

.github/workflows/npmpublish.yml

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -22,20 +22,6 @@ jobs:
2222
name: lib
2323
path: lib
2424

25-
test:
26-
needs: build
27-
runs-on: ubuntu-latest
28-
steps:
29-
- uses: actions/checkout@v2
30-
- uses: actions/setup-node@v1
31-
with:
32-
node-version: 12
33-
registry-url: https://registry.npmjs.org/
34-
- uses: actions/download-artifact@v1
35-
with:
36-
name: lib
37-
- run: npm run test
38-
3925
publish-npm:
4026
needs: test
4127
runs-on: ubuntu-latest

.github/workflows/test.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# This workflow will run tests using node and then publish a package to GitHub Packages when a release is created
2+
# For more information see: https://help.github.com/actions/language-and-framework-guides/publishing-nodejs-packages
3+
4+
name: Test library
5+
6+
on:
7+
push:
8+
branches: [ master ]
9+
pull_request:
10+
branches: [ master ]
11+
12+
jobs:
13+
test:
14+
needs: build
15+
runs-on: ubuntu-latest
16+
steps:
17+
- uses: actions/checkout@v2
18+
- uses: actions/setup-node@v1
19+
with:
20+
node-version: 12
21+
registry-url: https://registry.npmjs.org/
22+
- run: npm ci
23+
- run: npm run build
24+
- run: npm run test

0 commit comments

Comments
 (0)