Skip to content

Commit 9319528

Browse files
authoredJan 2, 2022
fix: update dependencies (#101)
1 parent 0a9c6b1 commit 9319528

File tree

4 files changed

+6440
-6812
lines changed

4 files changed

+6440
-6812
lines changed
 

‎.github/workflows/main.yml

+38-35
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,27 @@
11
name: CI
22

33
on: [ push, pull_request ]
4+
45
env:
5-
LATEST_NODE: '14'
6+
DEFAULT_NODE: '16'
67

78
jobs:
89
lockfile-lint:
910
name: Lockfile lint
10-
runs-on: ubuntu-latest
11+
runs-on: 'ubuntu-latest'
1112
steps:
1213
- uses: actions/checkout@v2
1314
- uses: actions/setup-node@v2
1415
with:
15-
node-version: ${{ env.LATEST_NODE }}
16+
node-version: ${{ env.DEFAULT_NODE }}
1617
- name: lint lock file
17-
run: npx lockfile-lint --path package-lock.json --allowed-hosts npm --validate-https
18-
18+
run: npx lockfile-lint --path package-lock.json --allowed-hosts npm --validate-http
19+
1920
test:
2021
strategy:
2122
matrix:
2223
platform: [ ubuntu-latest ]
23-
node: [ '10', '12', '14' ]
24+
node: [ '10', '12', '14', '16' ]
2425
name: Unit Tests Node ${{ matrix.node }} (${{ matrix.platform }})
2526
needs: lockfile-lint
2627
runs-on: ${{ matrix.platform }}
@@ -31,42 +32,44 @@ jobs:
3132
node-version: ${{ matrix.node }}
3233
- name: install dependencies
3334
run: npm ci
34-
- name: lint
35-
run: npm run lint
36-
- name: units tests
35+
- name: unit tests
3736
run: npm run test:coverage
38-
- name: Coveralls
37+
- name: upload code coverage artifacts
38+
if: ${{ matrix.node == env.DEFAULT_NODE }}
39+
uses: actions/upload-artifact@v2
40+
with:
41+
name: coverage
42+
path: coverage
43+
44+
coverage:
45+
needs: [test, lockfile-lint]
46+
runs-on: 'ubuntu-latest'
47+
steps:
48+
- uses: actions/checkout@v2
49+
- uses: actions/setup-node@v2
50+
with:
51+
node-version: ${{ env.DEFAULT_NODE }}
52+
- name: install dependencies
53+
run: npm ci
54+
- name: download code coverage artifacts
55+
uses: actions/download-artifact@v2
56+
with:
57+
name: coverage
58+
path: coverage
59+
- name: publish coverage to coveralls
3960
uses: coverallsapp/github-action@master
40-
if: matrix.node == ${{ env.LATEST_NODE }}
4161
with:
4262
github-token: ${{ secrets.GITHUB_TOKEN }}
4363

44-
45-
release:
46-
name: release
47-
permissions:
48-
actions: write
49-
checks: write
50-
contents: write
51-
deployments: write
52-
issues: write
53-
packages: write
54-
pull-requests: write
55-
repository-projects: write
56-
security-events: write
57-
statuses: write
58-
needs: [ test, lockfile-lint ]
59-
runs-on: ubuntu-latest
60-
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
64+
lint:
65+
needs: lockfile-lint
66+
runs-on: 'ubuntu-latest'
6167
steps:
6268
- uses: actions/checkout@v2
6369
- uses: actions/setup-node@v2
6470
with:
65-
node-version: '14'
71+
node-version: ${{ env.DEFAULT_NODE }}
6672
- name: install dependencies
67-
run: npm ci --ignore-scripts
68-
- name: release
69-
run: npx semantic-release
70-
env:
71-
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
72-
NPM_TOKEN: ${{secrets.NPM_TOKEN}}
73+
run: npm ci
74+
- name: lint
75+
run: npm run lint

‎.github/workflows/release.yml

+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Release
2+
3+
on: [ workflow_dispatch ]
4+
5+
jobs:
6+
release:
7+
name: release
8+
permissions:
9+
actions: write
10+
checks: write
11+
contents: write
12+
deployments: write
13+
issues: write
14+
packages: write
15+
pull-requests: write
16+
repository-projects: write
17+
security-events: write
18+
statuses: write
19+
if: github.ref == 'refs/heads/master'
20+
runs-on: ubuntu-latest
21+
steps:
22+
- uses: actions/checkout@v2
23+
- uses: actions/setup-node@v2
24+
with:
25+
node-version: '14'
26+
- name: install dependencies
27+
run: npm ci --ignore-scripts
28+
- name: release
29+
run: npx semantic-release
30+
env:
31+
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
32+
NPM_TOKEN: ${{secrets.NPM_TOKEN}}

‎package-lock.json

+6,364-6,771
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎package.json

+6-6
Original file line numberDiff line numberDiff line change
@@ -53,25 +53,25 @@
5353
"clone-deep": "^4.0.1",
5454
"decimal.js": "^10.3.1",
5555
"js-yaml": "^3.14.1",
56-
"lodash.get": "^4.4.2",
5756
"json-schema-deref-sync": "^0.14.0",
57+
"lodash.get": "^4.4.2",
5858
"openapi-schema-validator": "^3.0.3",
5959
"swagger-parser": "^10.0.3"
6060
},
6161
"devDependencies": {
6262
"ajv-keywords": "^3.5.2",
63-
"chai": "^4.3.3",
63+
"chai": "^4.3.4",
6464
"chai-as-promised": "^7.1.1",
65-
"eslint": "^6.8.0",
65+
"eslint": "^8.5.0",
6666
"eslint-config-standard": "^14.1.1",
6767
"eslint-plugin-chai-friendly": "^0.6.0",
68-
"eslint-plugin-import": "^2.22.1",
68+
"eslint-plugin-import": "^2.25.3",
6969
"eslint-plugin-node": "^11.1.0",
7070
"eslint-plugin-promise": "^4.3.1",
7171
"eslint-plugin-standard": "^4.1.0",
72-
"mocha": "^8.3.1",
72+
"mocha": "^8.4.0",
7373
"nyc": "^15.1.0",
74-
"snyk": "^1.618.0",
74+
"snyk": "^1.812.0",
7575
"uuid": "^8.3.2"
7676
},
7777
"publishConfig": {

0 commit comments

Comments
 (0)
Please sign in to comment.