Skip to content

Adaptation for version 1.27 #12

Adaptation for version 1.27

Adaptation for version 1.27 #12

Workflow file for this run

name: pr
on:
pull_request:
branches:
- main
jobs:
checks:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
check:
- eslint
- prettier
- tsgo
- vitest
- build
steps:
- uses: actions/checkout@v6
- uses: oven-sh/setup-bun@v2
with:
bun-version: "1.3.14"
- uses: actions/cache@v4
with:
path: |
node_modules
~/.bun/install/cache
key: bun-${{ runner.os }}-${{ hashFiles('bun.lock') }}
- run: bun install
- if: matrix.check == 'eslint'
run: bun eslint .
- if: matrix.check == 'prettier'
run: bun prettier --check .
- if: matrix.check == 'tsgo'
run: bunx --bun tsgo -b
- if: matrix.check == 'vitest'
run: bun vitest --run
- if: matrix.check == 'build'
run: bun bundle