Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: update ci to supported node.js 18 - 23 versions #25

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
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
13 changes: 7 additions & 6 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,16 @@ on:
jobs:
lint:
runs-on: ubuntu-latest
name: XO & Prettier
steps:
- name: Setup repo
uses: actions/checkout@v2
uses: actions/checkout@v4
- name: Setup node
uses: actions/setup-node@v1
- name: Install dev dependencies
uses: actions/setup-node@v4
with:
node-version: 22
- name: Install dependencies
run: |
npm install --only=dev
npm list --dev --depth=0
npm install
npm list
- name: Run lint
run: npm run lint
19 changes: 7 additions & 12 deletions .github/workflows/test-macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,26 +9,21 @@ on:
jobs:
test:
runs-on: macos-latest
name: AVA & TSD & Benchmark & Codecov
strategy:
fail-fast: false
matrix:
node: [current, 16, 14, 12, 10, 8, 6, 4]
node: [23, 22, 20, 18]
steps:
- name: Setup repo
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Setup node ${{ matrix.node }}
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
- name: Install lib dependencies
- name: Install dependencies
run: |
npm install --only=prod
npm list --prod --depth=0
- name: Install dev dependencies
run: |
npm install --only=dev
npm list --dev --depth=0
npm install
npm list
- name: Run tests
run: npm run test
#- name: Run type checking
Expand All @@ -37,4 +32,4 @@ jobs:
run: |
npm run bench
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v2
uses: codecov/codecov-action@v5
19 changes: 7 additions & 12 deletions .github/workflows/test-ubuntu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,26 +9,21 @@ on:
jobs:
test:
runs-on: ubuntu-latest
name: AVA & TSD & Benchmark & Codecov
strategy:
fail-fast: false
matrix:
node: [current, 16, 14, 12, 10, 8, 6, 4]
node: [23, 22, 20, 18]
steps:
- name: Setup repo
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Setup node ${{ matrix.node }}
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
- name: Install lib dependencies
- name: Install dependencies
run: |
npm install --only=prod
npm list --prod --depth=0
- name: Install dev dependencies
run: |
npm install --only=dev
npm list --dev --depth=0
npm install
npm list
- name: Run tests
run: npm run test
#- name: Run type checking
Expand All @@ -37,4 +32,4 @@ jobs:
run: |
npm run bench
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v2
uses: codecov/codecov-action@v5
24 changes: 7 additions & 17 deletions .github/workflows/test-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,37 +9,27 @@ on:
jobs:
test:
runs-on: windows-latest
name: AVA & TSD & Benchmark & Codecov
strategy:
fail-fast: false
matrix:
node: [current, 16, 14, 12, 10, 8, 6, 4]
node: [23, 22, 20, 18]
steps:
- name: Setup repo
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Setup node ${{ matrix.node }}
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
- name: Install lib dependencies
- name: Install dependencies
run: |
npm install --only=prod
npm list --prod --depth=0
- name: Install dev dependencies
run: |
npm install --only=dev
npm list --dev --depth=0
- name: Run tests
if: ${{ matrix.node <= 6 }}
run: npm run test
npm install
npm list
- name: Run tests
if: ${{ !(matrix.node <= 6) }}
run: npm run test:windows
#- name: Run type checking
# run: npm run types
- name: Run benchmark
run: |
npm run bench
- name: Upload coverage to Codecov
if: ${{ matrix.node <= 6 }}
uses: codecov/codecov-action@v2
uses: codecov/codecov-action@v5