Skip to content

feat!: migrate to Bun, publish ESM-only exports, add framework integr… #70

feat!: migrate to Bun, publish ESM-only exports, add framework integr…

feat!: migrate to Bun, publish ESM-only exports, add framework integr… #70

Workflow file for this run

name: Test
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
test:
name: Test
runs-on: ubuntu-latest
permissions:
# Required to checkout the code
contents: read
# Required to put a comment into the pull-request
pull-requests: write
steps:
- uses: actions/checkout@v4
- name: Setup Bun
uses: oven-sh/setup-bun@v2
with:
bun-version: "1.3.1"
- name: Use cache
uses: actions/cache@v4
with:
path: |
~/.bun/install/cache
node_modules
*/*/node_modules
key: bun-${{ runner.os }}-${{ hashFiles('bun.lock') }}
restore-keys: |
bun-${{ runner.os }}-
- name: Install dependencies
run: bun install --frozen-lockfile
- name: 'Test'
run: bun run test:coverage
- name: 'Report Coverage'
if: always() # Also generate the report if tests are failing
uses: davelosert/vitest-coverage-report-action@v2