File tree 8 files changed +7261
-1784
lines changed
8 files changed +7261
-1784
lines changed Original file line number Diff line number Diff line change 1
1
# This workflow will run tests using node and then publish a package to GitHub Packages when a release is created
2
2
# For more information see: https://help.github.com/actions/language-and-framework-guides/publishing-nodejs-packages
3
3
4
- name : Node.js Package
4
+ name : Publish Package
5
5
6
6
on :
7
7
release :
8
8
types : [created]
9
9
10
10
jobs :
11
- build :
12
- runs-on : ubuntu-latest
13
- steps :
14
- - uses : actions/checkout@v3
15
- - uses : actions/setup-node@v3
16
- with :
17
- node-version : 16
18
- - run : npm ci
19
-
20
11
publish-npm :
21
- needs : build
22
12
runs-on : ubuntu-latest
23
13
steps :
24
14
- uses : actions/checkout@v2
25
15
- uses : actions/setup-node@v2
26
16
with :
27
- node-version : 16
17
+ node-version : 18
28
18
registry-url : https://registry.npmjs.org/
29
19
- run : npm ci
30
20
- run : npm publish --access public
Original file line number Diff line number Diff line change
1
+ name : Test
2
+
3
+ on :
4
+ pull_request :
5
+ branches :
6
+ - main
7
+
8
+ jobs :
9
+ test :
10
+ runs-on : ubuntu-latest
11
+ steps :
12
+ - uses : actions/checkout@v3
13
+ - uses : actions/setup-node@v3
14
+ with :
15
+ node-version : 18
16
+ - run : npm ci
17
+ - run : npm run test
Original file line number Diff line number Diff line change 1
1
test-e2e /
2
2
.github /
3
+ test /
Original file line number Diff line number Diff line change @@ -45,8 +45,12 @@ Before(function () {
45
45
this .log (` rp_attribute: random:${ Date .now ()} ` ); // dynamic attribute
46
46
});
47
47
```
48
+ ### Run Unit Tests
49
+ add token.json file with rp token and other config
50
+ run
51
+ ` npm run test `
48
52
49
- ### Run E2E Test
53
+ ### Run E2E Tests
50
54
add token.json file with rp token and other config
51
55
run
52
56
` npm run test-e2e `
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ class RPFormatter extends Formatter {
10
10
11
11
constructor ( options ) {
12
12
super ( options ) ;
13
- const rpEnable = options . parsedArgvOptions . rpConfig . enable ;
13
+ const rpEnable = options . parsedArgvOptions ? .rpConfig ? .enable ;
14
14
if ( rpEnable !== undefined && ! rpEnable ) return undefined ;
15
15
options . eventBroadcaster . on ( 'envelope' , this . processEnvelope . bind ( this ) ) ;
16
16
this . rpConfig = options . parsedArgvOptions . rpConfig ;
You can’t perform that action at this time.
0 commit comments