File tree Expand file tree Collapse file tree 6 files changed +67
-32
lines changed
Expand file tree Collapse file tree 6 files changed +67
-32
lines changed Original file line number Diff line number Diff line change @@ -2,9 +2,6 @@ name: Build Example App
22
33on :
44 pull_request :
5- push :
6- branches :
7- - master
85
96jobs :
107 Build :
Original file line number Diff line number Diff line change @@ -2,9 +2,6 @@ name: Build SDK
22
33on :
44 pull_request :
5- push :
6- branches :
7- - master
85
96jobs :
107 Build :
2320 ${{ runner.os }}-node-
2421
2522 - run : npm install
26- - run : npm run prettier -- --check
27- - run : npm run lint
2823 - run : npm run build
29- - run : npm run test
30- - run : npm run spellcheck
Original file line number Diff line number Diff line change 1+ name : Lint
2+
3+ on :
4+ pull_request :
5+
6+ jobs :
7+ Build :
8+ runs-on : ubuntu-latest
9+
10+ steps :
11+ - uses : actions/checkout@v2
12+ - uses : actions/setup-node@v2
13+ with :
14+ node-version : 16
15+ - uses : actions/cache@v3
16+ with :
17+ path : node_modules
18+ key : ${{ runner.os }}-node-${{ hashFiles('package-lock.json') }}
19+ restore-keys : |
20+ ${{ runner.os }}-node-
21+
22+ - run : npm install
23+ - run : npm run prettier -- --check
24+ - run : npm run lint
25+ - run : npm run spellcheck
Original file line number Diff line number Diff line change @@ -3,22 +3,22 @@ name: Package Audit Example App
33on :
44 pull_request :
55 paths :
6- - example/**
7- - .github/workflows/package-audit-app.yml
6+ - example/**
7+ - .github/workflows/package-audit-app.yml
88 schedule :
9- - cron : " 0 0 1 * *" # every month
9+ - cron : " 0 0 1 * *" # every month
1010
1111jobs :
1212 Build :
1313 runs-on : ubuntu-latest
1414
1515 steps :
16- - uses : actions/checkout@v2
17- - uses : actions/setup-node@v2
18- with :
19- node-version : 16
20- cache : npm
16+ - uses : actions/checkout@v2
17+ - uses : actions/setup-node@v2
18+ with :
19+ node-version : 16
20+ cache : npm
2121
22- - name : Run npm audit (app)
23- run : npm audit --omit dev
24- working-directory : example
22+ - name : Run npm audit (app)
23+ run : npm audit
24+ working-directory : example
Original file line number Diff line number Diff line change @@ -2,22 +2,19 @@ name: Package Audit SDK
22
33on :
44 pull_request :
5- push :
6- branches :
7- - master
85 schedule :
9- - cron : " 0 0 1 * *" # every month
6+ - cron : " 0 0 1 * *" # every month
107
118jobs :
129 Build :
1310 runs-on : ubuntu-latest
1411
1512 steps :
16- - uses : actions/checkout@v2
17- - uses : actions/setup-node@v2
18- with :
19- node-version : 16
20- cache : npm
13+ - uses : actions/checkout@v2
14+ - uses : actions/setup-node@v2
15+ with :
16+ node-version : 16
17+ cache : npm
2118
22- - name : Run npm audit
23- run : npm audit --omit dev
19+ - name : Run npm audit
20+ run : npm audit
Original file line number Diff line number Diff line change 1+ name : Unit/Integration tests
2+
3+ on :
4+ pull_request :
5+
6+ jobs :
7+ Build :
8+ runs-on : ubuntu-latest
9+
10+ steps :
11+ - uses : actions/checkout@v2
12+ - uses : actions/setup-node@v2
13+ with :
14+ node-version : 16
15+ - uses : actions/cache@v3
16+ with :
17+ path : node_modules
18+ key : ${{ runner.os }}-node-${{ hashFiles('package-lock.json') }}
19+ restore-keys : |
20+ ${{ runner.os }}-node-
21+
22+ - run : npm install
23+ - run : npm run test
You can’t perform that action at this time.
0 commit comments