Skip to content

Commit

Permalink
Fix Node.js 12 CI support
Browse files Browse the repository at this point in the history
  • Loading branch information
ai committed Mar 27, 2023
1 parent 0f9cd79 commit c533483
Showing 1 changed file with 30 additions and 6 deletions.
36 changes: 30 additions & 6 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
name: Test
on:
push:
branches:
- main
pull_request:
permissions:
contents: read
jobs:
full:
name: Node.js 17 Full
name: Node.js 19 Full
runs-on: ubuntu-latest
steps:
- name: Checkout the repository
Expand All @@ -16,22 +20,20 @@ jobs:
- name: Install Node.js
uses: actions/setup-node@v2
with:
node-version: 17
node-version: 19
cache: pnpm
- name: Install dependencies
run: pnpm install --frozen-lockfile --ignore-scripts
- name: Run tests
run: pnpm test
env:
FORCE_COLOR: 2
short:
runs-on: ubuntu-latest
strategy:
matrix:
node-version:
- 18
- 16
- 14
- 12
name: Node.js ${{ matrix.node-version }} Quick
steps:
- name: Checkout the repository
Expand All @@ -49,5 +51,27 @@ jobs:
run: pnpm install --frozen-lockfile --ignore-scripts
- name: Run unit tests
run: pnpm unit
old:
runs-on: ubuntu-latest
strategy:
matrix:
node-version:
- 12
name: Node.js ${{ matrix.node-version }} Quick
steps:
- name: Checkout the repository
uses: actions/checkout@v3
- name: Install pnpm
uses: pnpm/action-setup@v1
with:
version: 3
env:
FORCE_COLOR: 2
ACTIONS_ALLOW_UNSECURE_COMMANDS: true
- name: Install Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Install dependencies
run: pnpm install --frozen-lockfile --ignore-scripts
- name: Run unit tests
run: pnpm unit

0 comments on commit c533483

Please sign in to comment.