mirror of
https://github.com/zen-browser/www.git
synced 2025-07-07 08:55:32 +02:00
This commit adds the Biome formatter and linter to replace Prettier, including: - Add biome.json config file - Add pre-commit hook with Husky - Configure GitHub Action to run Biome checks - Apply Biome formatting rules to codebase - Remove Prettier dependencies
28 lines
577 B
YAML
28 lines
577 B
YAML
name: PR Build Check
|
|
on:
|
|
pull_request:
|
|
types: [opened, synchronize, reopened]
|
|
|
|
jobs:
|
|
upload:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Setup Node.js
|
|
uses: actions/setup-node@v4
|
|
with:
|
|
node-version: 22
|
|
|
|
- name: Verify npm installation
|
|
run: npm --version
|
|
|
|
- name: Install dependencies
|
|
run: npm install --no-frozen-lockfile
|
|
|
|
- name: Run Biome check
|
|
run: npx biome check ./src
|
|
|
|
- name: Build project
|
|
run: npm run build
|