test: adapt tests to new Bun version #1413
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: [main] | |
pull_request: | |
branches: [main] | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu-latest, windows-latest, macos-latest] | |
steps: | |
# Useful to test Node.js runtime is working fine on some tests | |
- uses: actions/checkout@v4 | |
- name: Setup Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '22' | |
# Bun setup, used for almost everything inside the project | |
- uses: actions/checkout@v4 | |
- name: Bunjs | |
uses: oven-sh/setup-bun@v1 | |
with: | |
bun-version: 1.1.26 | |
- name: Install dependencies | |
run: bun install | |
- run: bun run build | |
- run: bun run test |