Skip to content

update pnpm version #46

update pnpm version

update pnpm version #46

Workflow file for this run

name: 'Run tests on Bun'
on:
push:
paths:
- '.github/workflows/bun.yml'
- 'tests/**'
- 'types/**'
- 'index.ts'
- 'package.json'
- 'pnpm-lock.yaml'
pull_request:
paths:
- '.github/workflows/bun.yml'
- 'tests/**'
- 'types/**'
- 'index.ts'
- 'package.json'
- 'pnpm-lock.yaml'
workflow_dispatch:
jobs:
default:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
vite-version: ['vite@2', 'vite@3', 'vite@4', 'vite@5']
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
with:
fetch-depth: 10
- uses: oven-sh/setup-bun@8f24390df009a496891208e5e36b8a1de1f45135 # v1.2.1
- name: Install dependencies
run: |
bun install --frozen-lockfile --strict-peer-dependencies
bun install ${{ matrix.vite-version }}
- name: Lint Source
run: bun run --if-present lint
- name: Build Source
run: bun run --if-present build
- name: Run Tests
run: bun run --if-present test