File tree Expand file tree Collapse file tree 3 files changed +39
-30
lines changed Expand file tree Collapse file tree 3 files changed +39
-30
lines changed Original file line number Diff line number Diff line change 1
- name : Node.js CI
1
+ name : Run CI tests
2
2
3
3
on :
4
4
push :
@@ -11,18 +11,16 @@ jobs:
11
11
12
12
strategy :
13
13
matrix :
14
- node-version : [14 .x]
14
+ node-version : [16 .x]
15
15
16
16
steps :
17
- - uses : actions/checkout@v2
17
+ - uses : actions/checkout@v3
18
18
- name : Use Node.js ${{ matrix.node-version }}
19
- uses : actions/setup-node@v1
19
+ uses : actions/setup-node@v3
20
20
with :
21
21
node-version : ${{ matrix.node-version }}
22
22
- name : Install packages
23
23
run : yarn install --non-interactive --frozen-lockfile
24
- env :
25
- NODE_AUTH_TOKEN : ${{secrets.npm_token}}
26
24
- name : Run tests
27
25
run : yarn test:coverage
28
26
- name : Upload coverage report
Original file line number Diff line number Diff line change
1
+ name : Run E2E tests
2
+
3
+ on :
4
+ push :
5
+ branches : [dev]
6
+ pull_request : {}
7
+
8
+ jobs :
9
+ build :
10
+ runs-on : ubuntu-latest
11
+
12
+ strategy :
13
+ matrix :
14
+ node-version : [16.x]
15
+
16
+ steps :
17
+ - uses : actions/checkout@v3
18
+ - name : Use Node.js ${{ matrix.node-version }}
19
+ uses : actions/setup-node@v3
20
+ with :
21
+ node-version : ${{ matrix.node-version }}
22
+ - name : Install packages
23
+ run : yarn install --non-interactive --frozen-lockfile
24
+ - name : Run e2e tests
25
+ run : ADDRESS_BOOK=addresses.json yarn test:e2e
Original file line number Diff line number Diff line change @@ -11,37 +11,23 @@ jobs:
11
11
build :
12
12
runs-on : ubuntu-latest
13
13
steps :
14
- - uses : actions/checkout@v2
15
- - uses : actions/setup-node@v1
14
+ - uses : actions/checkout@v3
15
+ - uses : actions/setup-node@v3
16
16
with :
17
- node-version : 12
18
- - run : npm ci
19
- - run : npm test
17
+ node-version : 16
18
+ - run : yarn install --non-interactive --frozen-lockfile
19
+ - run : yarn test
20
20
21
21
publish-npm :
22
22
needs : build
23
23
runs-on : ubuntu-latest
24
24
steps :
25
25
- uses : actions/checkout@v2
26
- - uses : actions/setup-node@v1
26
+ - uses : actions/setup-node@v3
27
27
with :
28
- node-version : 12
28
+ node-version : 16
29
29
registry-url : https://registry.npmjs.org/
30
- - run : npm ci
31
- - run : npm publish --access=restricted
32
- env :
33
- NODE_AUTH_TOKEN : ${{secrets.npm_token}}
34
-
35
- publish-gpr :
36
- needs : build
37
- runs-on : ubuntu-latest
38
- steps :
39
- - uses : actions/checkout@v2
40
- - uses : actions/setup-node@v1
41
- with :
42
- node-version : 12
43
- registry-url : https://npm.pkg.github.com/
44
- - run : npm ci
45
- - run : npm publish --access=restricted
30
+ - run : yarn install --non-interactive --frozen-lockfile
31
+ - run : npm publish --access=public
46
32
env :
47
- NODE_AUTH_TOKEN : ${{secrets.GITHUB_TOKEN }}
33
+ NODE_AUTH_TOKEN : ${{secrets.npm_token }}
You can’t perform that action at this time.
0 commit comments