Skip to content

Commit e411422

Browse files
committed
Run tests in multiple Node versions
1 parent 56f9b58 commit e411422

File tree

2 files changed

+16
-2
lines changed

2 files changed

+16
-2
lines changed

.github/workflows/run-tests.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,16 @@ on:
55
types: [opened, synchronize]
66

77
jobs:
8-
lint:
8+
run-tests:
9+
strategy:
10+
fail-fast: false
11+
matrix:
12+
node-version:
13+
# This is the version used by LeetCode.
14+
- 20.10.0
15+
- lts
16+
- latest
17+
918
runs-on: ubuntu-latest
1019

1120
steps:

.github/workflows/set-up-everything/action.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
name: Set Up Everything
22

3+
inputs:
4+
node-version:
5+
required: true
6+
default: latest
7+
38
runs:
49
using: composite
510

@@ -17,7 +22,7 @@ runs:
1722
- name: Set up Node
1823
uses: actions/setup-node@v4
1924
with:
20-
node-version: 22
25+
node-version: ${{ inputs.node-version }}
2126
cache: yarn
2227
cache-dependency-path: ./yarn.lock
2328

0 commit comments

Comments
 (0)