Skip to content

Commit

Permalink
chore: add more test runtimes (#69)
Browse files Browse the repository at this point in the history
* add runtimes

* Update main.yml

* Update main.yml
  • Loading branch information
wbhob authored Dec 25, 2024
1 parent afa586c commit 4a93413
Showing 1 changed file with 31 additions and 31 deletions.
62 changes: 31 additions & 31 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,42 +2,42 @@ name: CI

on:
push:
branches: [ main, master ]
branches: [main, master]
pull_request:
branches: [ main, master ]
branches: [main, master]

jobs:
test:
test-node:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [lts/*, latest]
node-version: [18, 20, lts/*, latest]

steps:
- uses: actions/checkout@v4
- name: Setup pnpm
uses: pnpm/action-setup@v2
with:
version: latest
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'pnpm'

- name: Install global dependencies
run: |
pnpm add -g lerna typescript
- name: Install dependencies
run: pnpm install
- name: Run tests
run: pnpm test
- name: Upload coverage
env:
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
run: pnpm run coverage
- uses: actions/checkout@v4

- name: Setup pnpm
uses: pnpm/action-setup@v2
with:
version: latest

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: "pnpm"

- name: Install global dependencies
run: |
pnpm add -g lerna typescript
- name: Install dependencies
run: pnpm install

- name: Run tests
run: pnpm test

- name: Upload coverage
env:
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
run: pnpm run coverage

0 comments on commit 4a93413

Please sign in to comment.