Skip to content
This repository was archived by the owner on Mar 13, 2025. It is now read-only.

Commit 825054d

Browse files
committed
Update actions workflow to Node 18 and add linting/type checking job
Node 17 reaches end-of-life on `2022-06-01`: https://nodejs.org/en/about/releases/
1 parent 3eba8f2 commit 825054d

File tree

1 file changed

+20
-4
lines changed

1 file changed

+20
-4
lines changed

.github/workflows/test.yml

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,25 @@
1-
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
1+
# This workflow will do a clean install of npm dependencies, run tests across different versions of Node.js,
2+
# run the linter, and run TypeScript type checking.
3+
#
24
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
35

46
name: Test
57

68
on:
79
push:
8-
branches: [ master, v2 ]
10+
branches: [ master ]
911
pull_request:
10-
branches: [ master, v2 ]
12+
branches: [ master ]
1113

1214
jobs:
1315
test:
16+
name: "Test"
1417
runs-on: ${{ matrix.os }}
1518

1619
strategy:
1720
matrix:
1821
os: [ubuntu-latest, windows-latest]
19-
node: [16.7.0, 17.x]
22+
node: [16.7.0, 18.x]
2023
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
2124

2225
steps:
@@ -27,3 +30,16 @@ jobs:
2730
node-version: ${{ matrix.node }}
2831
- run: npm ci
2932
- run: npm test
33+
34+
lint_type:
35+
name: "Lint & Type Check"
36+
runs-on: ubuntu-latest
37+
steps:
38+
- uses: actions/checkout@v2
39+
- name: Use Node.js 18.x
40+
uses: actions/setup-node@v2
41+
with:
42+
node-version: 18.x
43+
- run: npm ci
44+
- run: npm lint
45+
- run: npm types:build

0 commit comments

Comments
 (0)