Skip to content

Commit

Permalink
chore: test node
Browse files Browse the repository at this point in the history
  • Loading branch information
iChenLei committed Dec 8, 2024
1 parent 4342dc7 commit ba96687
Showing 1 changed file with 30 additions and 28 deletions.
58 changes: 30 additions & 28 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,47 +9,49 @@ on:
branches: [main, master]

jobs:
platform_spec_test:
# platform_spec_test:
# name: 'Tests on ${{matrix.os}} with node${{matrix.node}}'
# strategy:
# matrix:
# # Test all mainstream operating system
# os: [ubuntu-latest, macos-latest, windows-latest]
# node: [22]
# runs-on: ${{ matrix.os }}
# steps:
# # Pull repo to test machine
# - uses: actions/checkout@v2
# # Configures the node version used on GitHub-hosted runners
# - uses: actions/setup-node@v2
# with:
# # The Node.js version to configure
# node-version: ${{ matrix.node }}
# - name: Install npm dependencies
# run: npm install
# - name: Print put node & npm version
# # Output useful info for debugging.
# run: node --version && npm --version
# - name: Install chromium
# run: npx playwright install chromium
# - name: Run unit test
# run: npm run test

fast_node_test:
name: 'Tests on ${{matrix.os}} with node${{matrix.node}}'
strategy:
matrix:
# Test all mainstream operating system
os: [ubuntu-latest, macos-latest, windows-latest]
node: [22]
os: [ubuntu-latest]
node: [12, 14, 16, 18, 20]
runs-on: ${{ matrix.os }}
steps:
# Pull repo to test machine
- uses: actions/checkout@v2
# Configures the node version used on GitHub-hosted runners
- uses: actions/setup-node@v2
with:
# The Node.js version to configure
node-version: ${{ matrix.node }}
- name: Install npm dependencies
run: npm install
- name: Print put node & npm version
# Output useful info for debugging.
run: node --version && npm --version
- name: Install chromium
- name: Install chromium
run: npx playwright install chromium
- name: Run unit test
run: npm run test

# fast_node_test:
# name: 'Tests on ${{matrix.os}} with node${{matrix.node}}'
# strategy:
# matrix:
# os: [ubuntu-latest]
# node: [16, 18, 20]
# runs-on: ${{ matrix.os }}
# steps:
# - uses: actions/checkout@v2
# - uses: actions/setup-node@v2
# with:
# node-version: ${{ matrix.node }}
# - name: Install npm dependencies
# run: npm install
# - name: Print put node & npm version
# run: node --version && npm --version
# - name: Run unit test
# run: npm run test

0 comments on commit ba96687

Please sign in to comment.