diff --git a/.github/workflows/biome.yaml b/.github/workflows/biome.yaml new file mode 100644 index 0000000..251486f --- /dev/null +++ b/.github/workflows/biome.yaml @@ -0,0 +1,26 @@ +name: Biome Check and Fix + +on: + pull_request: + paths: + - 'web/**' + +jobs: + biome: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-node@v3 + with: + node-version: '20' + - name: Install dependencies + run: cd web && bun i + - name: Run Biome check and fix + run: | + cd web + bunx @biomejs/biome check --apply . + - name: Commit changes + uses: stefanzweifel/git-auto-commit-action@v4 + with: + commit_message: "style: apply Biome fixes" + file_pattern: 'web/**/*' \ No newline at end of file