mirror of
https://github.com/cosscom/coss.git
synced 2026-09-14 20:06:50 +08:00
34 lines
714 B
YAML
34 lines
714 B
YAML
name: Format
|
|
|
|
on:
|
|
workflow_call:
|
|
|
|
env:
|
|
BUN_VERSION: 1.3.1
|
|
|
|
jobs:
|
|
format:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Setup Bun
|
|
uses: oven-sh/setup-bun@v1
|
|
with:
|
|
bun-version: ${{ env.BUN_VERSION }}
|
|
|
|
- name: Cache dependencies
|
|
uses: actions/cache@v4
|
|
with:
|
|
path: |
|
|
~/.bun/install/cache
|
|
node_modules
|
|
key: ${{ runner.os }}-bun-${{ hashFiles('bun.lock') }}
|
|
|
|
- name: Install dependencies
|
|
run: bun install --frozen-lockfile
|
|
|
|
- name: Verify formatting
|
|
run: bunx biome check --linter-enabled=false --organize-imports-enabled=false .
|