Skip to content

Commit 991e5ac

Browse files
WikiRikRik Smale
and
Rik Smale
authored
ci: update workflows (#2539)
* ci: update workflows * Add reference to CODECOV_TOKEN * Remove unnecessary whitespace --------- Co-authored-by: Rik Smale <[email protected]>
1 parent fc7a60a commit 991e5ac

File tree

3 files changed

+18
-20
lines changed

3 files changed

+18
-20
lines changed

.github/workflows/ci.yml

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,25 +6,24 @@ on:
66
branches: [master]
77
jobs:
88
test:
9-
runs-on: ubuntu-20.04
9+
runs-on: ubuntu-latest
1010
strategy:
1111
matrix:
12-
node-version: [20, 18, 16, 14, 12, 10, 8, 6]
12+
node-version: [22, 20, 18, 16, 14, 12, 10, 8, 6]
1313
name: Run tests on Node.js ${{ matrix.node-version }}
1414
steps:
1515
- name: Setup Node.js ${{ matrix.node-version }}
16-
uses: actions/setup-node@v2-beta
16+
uses: actions/setup-node@v4
1717
with:
1818
node-version: ${{ matrix.node-version }}
19-
check-latest: true
2019
- name: Checkout repository
21-
uses: actions/checkout@v2
20+
uses: actions/checkout@v4
2221
- name: Install dependencies
23-
run: npm install --legacy-peer-deps
22+
run: npm install --legacy-peer-deps
2423
- name: Run tests
2524
run: npm test
26-
- if: matrix.node-version == 20
25+
- if: matrix.node-version == 22
2726
name: Send coverage info to Codecov
28-
uses: codecov/codecov-action@v1
27+
uses: codecov/codecov-action@v5
2928
with:
30-
file: ./coverage/cobertura-coverage.xml
29+
token: ${{ secrets.CODECOV_TOKEN }}

.github/workflows/codeql-analysis.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,11 @@ jobs:
3838

3939
steps:
4040
- name: Checkout repository
41-
uses: actions/checkout@v2
41+
uses: actions/checkout@v4
4242

4343
# Initializes the CodeQL tools for scanning.
4444
- name: Initialize CodeQL
45-
uses: github/codeql-action/init@v2
45+
uses: github/codeql-action/init@v3
4646
with:
4747
languages: ${{ matrix.language }}
4848
# If you wish to specify custom queries, you can do so here or in a config file.
@@ -53,7 +53,7 @@ jobs:
5353
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
5454
# If this step fails, then you should remove it and run the build manually (see below)
5555
- name: Autobuild
56-
uses: github/codeql-action/autobuild@v2
56+
uses: github/codeql-action/autobuild@v3
5757

5858
# ℹ️ Command-line programs to run using the OS shell.
5959
# 📚 https://git.io/JvXDl
@@ -67,4 +67,4 @@ jobs:
6767
# make release
6868

6969
- name: Perform CodeQL Analysis
70-
uses: github/codeql-action/analyze@v2
70+
uses: github/codeql-action/analyze@v3

.github/workflows/npm-publish.yml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,21 +4,20 @@ on:
44
types: [created]
55
jobs:
66
publish:
7-
runs-on: ubuntu-20.04
7+
runs-on: ubuntu-latest
88
permissions:
99
contents: read
1010
id-token: write
1111
steps:
12-
- name: Setup Node.js 18
13-
uses: actions/setup-node@v3
12+
- name: Setup Node.js 22
13+
uses: actions/setup-node@v4
1414
with:
15-
node-version: 18
16-
check-latest: true
15+
node-version: 22
1716
registry-url: https://registry.npmjs.org/
1817
- name: Checkout Repository
19-
uses: actions/checkout@v3
18+
uses: actions/checkout@v4
2019
- name: Install Dependencies
21-
run: npm install
20+
run: npm install --legacy-peer-deps
2221
- name: Run Tests
2322
run: npm test
2423
- name: Publish Package to NPM Registry

0 commit comments

Comments
 (0)