Skip to content

spec: test in bun

spec: test in bun #26

Workflow file for this run

name: Test
on: [push, pull_request]
jobs:
Test Nodejs:

Check failure on line 5 in .github/workflows/ci.yaml

View workflow run for this annotation

GitHub Actions / Test

Invalid workflow file

The workflow is not valid. .github/workflows/ci.yaml (Line: 5, Col: 3): The identifier 'Test Nodejs' is invalid. IDs may only contain alphanumeric characters, '_', and '-'. IDs must start with a letter or '_' and and must be less than 100 characters. .github/workflows/ci.yaml (Line: 22, Col: 3): The identifier 'Test Bun' is invalid. IDs may only contain alphanumeric characters, '_', and '-'. IDs must start with a letter or '_' and and must be less than 100 characters.
name: Test Node.js
runs-on: ${{ matrix.platform }}
strategy:
matrix:
node: [16, 18, 20]
platform: [ubuntu-latest, windows-latest, macos-latest]
steps:
- uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
- uses: actions/checkout@v3
- name: Install
run: npm install
- name: Test
run: npm test
Test Bun:
name: Test Bun
runs-on: ${{ matrix.platform }}
strategy:
matrix:
bun: [latest]
platform: [ubuntu-latest, windows-latest, macos-latest]
steps:
- uses: oven-sh/setup-bun@v1
with:
bun-version: ${{ matrix.bun }}
- uses: actions/checkout@v3
- name: Install
run: bun install
- name: Test
run: bun test