Skip to content

Commit 052ed4f

Browse files
authored
feat: dropping support for node 10, expanding coverage to node 14/16 (#325)
* feat: dropping support for node 10 * test: fixing a broken test on node 14 * ci: updating the ci workflow to use node 12+ * ci: upgrading the codeql workflow to the latest way it configs * chore(deps-dev): upgrading jest to v27 * chore(deps-dev): upgrading code styling dev deps * chore(deps-dev): upgrading nock to the latest version * chore: removing a swagger file that shouldnt be in the root dir? * ci: updating codeql to run on `main` not `master` * fix: removing the `main` declaration because it doesnt exist
1 parent d39fca1 commit 052ed4f

File tree

5 files changed

+19181
-6119
lines changed

5 files changed

+19181
-6119
lines changed

.github/workflows/ci.yml

Lines changed: 16 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -4,22 +4,24 @@ on: [push]
44

55
jobs:
66
build:
7-
87
runs-on: ubuntu-latest
9-
108
strategy:
119
matrix:
12-
node-version: [10.x, 12.x]
10+
node-version: [12.x, 14.x, 16.x]
1311

1412
steps:
15-
- uses: actions/checkout@v2.3.4
16-
- name: Use Node.js ${{ matrix.node-version }}
17-
uses: actions/setup-node@v2.1.5
18-
with:
19-
node-version: ${{ matrix.node-version }}
20-
- name: npm install and test
21-
run: |
22-
npm ci
23-
npm test
24-
env:
25-
CI: true
13+
- uses: actions/checkout@v2.3.4
14+
15+
- name: Use Node.js ${{ matrix.node-version }}
16+
uses: actions/setup-node@v2.1.5
17+
with:
18+
node-version: ${{ matrix.node-version }}
19+
20+
- name: Install npm@7
21+
run: npm install -g npm@7
22+
23+
- name: Install deps
24+
run: npm ci
25+
26+
- name: Run tests
27+
run: npm test

.github/workflows/codeql-analysis.yml

Lines changed: 12 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
1-
name: "Code scanning - action"
1+
name: "CodeQL"
22

33
on:
44
push:
5+
branches: [main]
56
pull_request:
7+
branches: [main]
68
schedule:
79
- cron: '0 12 * * 1'
810

@@ -12,27 +14,14 @@ jobs:
1214
runs-on: ubuntu-latest
1315

1416
steps:
15-
- name: Checkout repository
16-
uses: actions/checkout@v2.3.4
17-
with:
18-
# We must fetch at least the immediate parents so that if this is
19-
# a pull request then we can checkout the head.
20-
fetch-depth: 2
17+
- name: Checkout repository
18+
uses: actions/checkout@v2.3.4
2119

22-
# If this run was triggered by a pull request event, then checkout
23-
# the head of the pull request instead of the merge commit.
24-
- run: git checkout HEAD^2
25-
if: ${{ github.event_name == 'pull_request' }}
20+
- name: Initialize CodeQL
21+
uses: github/codeql-action/init@v1
22+
with:
23+
languages: javascript
24+
config-file: ./.github/codeql/config.yml
2625

27-
# Initializes the CodeQL tools for scanning.
28-
- name: Initialize CodeQL
29-
uses: github/codeql-action/init@v1
30-
with:
31-
languages: javascript
32-
config-file: ./.github/codeql/config.yml
33-
34-
- name: Install Dependencies
35-
run: npm ci
36-
37-
- name: Perform CodeQL Analysis
38-
uses: github/codeql-action/analyze@v1
26+
- name: Perform CodeQL Analysis
27+
uses: github/codeql-action/analyze@v1

0 commit comments

Comments
 (0)