chore: formatting #280
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
workflow_dispatch: | |
jobs: | |
test: | |
strategy: | |
matrix: | |
env: | |
- { os: 'ubuntu-22.04', tool: 'bun' } | |
- { os: 'macos-12', tool: 'bun' } | |
- { os: 'windows-2022', tool: 'bun' } | |
# - { os: 'ubuntu-22.04', tool: 'node+jest' } | |
# - { os: 'macos-12', tool: 'node+jest' } | |
- { os: 'windows-2022', tool: 'node+jest' } | |
runs-on: ${{ matrix.env.os }} | |
steps: | |
- uses: actions/checkout@v4 | |
# Testing `bun` | |
- uses: oven-sh/setup-bun@v2 | |
if: ${{ matrix.env.tool == 'bun' }} | |
- name: Install and test with Bun | |
run: | | |
bun -v | |
bun install | |
bun install --no-save esbuild | |
bun test --coverage | |
if: ${{ matrix.env.tool == 'bun' }} | |
# Testing `node+jest` | |
- name: Install and test with Node | |
run: | | |
node -v && npm -v | |
npm install | |
npm install --no-save jest jest-extended esbuild | |
npm test -- --coverage | |
if: ${{ matrix.env.tool == 'node+jest' }} |