Skip to content

Commit

Permalink
Update main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
wbhob committed Dec 25, 2024
1 parent 4d8a753 commit 57bd748
Showing 1 changed file with 24 additions and 53 deletions.
77 changes: 24 additions & 53 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,71 +2,42 @@ name: CI

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

jobs:
test-node:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18, 20, lts/*, latest]
node-version: [12, 14, 16,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'
- uses: actions/checkout@v4

- name: Install global dependencies
run: |
pnpm add -g lerna typescript
- name: Setup pnpm
uses: pnpm/action-setup@v2
with:
version: latest

- 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
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: "pnpm"

test-bun:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Setup Bun
uses: oven-sh/setup-bun@v1
with:
bun-version: latest
- name: Install global dependencies
run: |
pnpm add -g lerna typescript
- name: Install dependencies
run: bun install

- name: Run tests
run: bun test
- name: Install dependencies
run: pnpm install

test-deno:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Setup Deno
uses: denoland/setup-deno@v1
with:
deno-version: vx.x.x
- name: Run tests
run: pnpm test

- name: Run tests
run: deno test
- name: Upload coverage
env:
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
run: pnpm run coverage

0 comments on commit 57bd748

Please sign in to comment.