Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 13 additions & 2 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,22 @@
name: Run tests on PRs
name: Run tests

on:
pull_request:
types: [opened, synchronize]

jobs:
lint:
run-tests:
name: Node ${{ matrix.node-version }}

strategy:
fail-fast: false
matrix:
node-version:
# This is the version used by LeetCode.
- 20.10.0
- lts
- latest

runs-on: ubuntu-latest

steps:
Expand Down
7 changes: 6 additions & 1 deletion .github/workflows/set-up-everything/action.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
name: Set Up Everything

inputs:
node-version:
required: true
default: latest

runs:
using: composite

Expand All @@ -17,7 +22,7 @@ runs:
- name: Set up Node
uses: actions/setup-node@v4
with:
node-version: 22
node-version: ${{ inputs.node-version }}
cache: yarn
cache-dependency-path: ./yarn.lock

Expand Down
Loading