-
-
Notifications
You must be signed in to change notification settings - Fork 543
43 lines (40 loc) · 1.23 KB
/
pull_request_js.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# Jobs run on pull request in js folders
name: Pull request JS
on:
pull_request:
branches:
- main
paths: # Only run when changes are made to js code
- 'packages/@biomejs/**'
- 'packages/aria-data/**'
- 'packages/tailwindcss-config-analyzer/**'
- 'package.json'
- 'pnpm-lock.yaml'
# Cancel jobs when the PR is updated
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
cancel-in-progress: true
env:
RUST_LOG: info
RUST_BACKTRACE: 1
jobs:
format-js:
name: Check JS Files
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Free Disk Space
uses: ./.github/actions/free-disk-space
- name: Cache pnpm modules
uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
with:
path: ~/.pnpm-store
key: ${{ runner.os }}-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-
- uses: pnpm/action-setup@fe02b34f77f8bc703788d5817da081398fad5dd2 # v4.0.0
- name: Run Biome CI check
run: |
pnpm i
pnpm run ci