Skip to content

Commit a19d8ea

Browse files
committed
ci: add PR check workflow
1 parent 90afd6e commit a19d8ea

File tree

1 file changed

+53
-0
lines changed

1 file changed

+53
-0
lines changed

.github/workflows/pr-check.yml

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
name: PR Checks (bun run check)
2+
3+
on:
4+
pull_request:
5+
types: [opened, synchronize, reopened, ready_for_review]
6+
7+
permissions:
8+
contents: read
9+
pull-requests: read
10+
11+
concurrency:
12+
group: pr-check-${{ github.workflow }}-${{ github.event.pull_request.head.sha || github.sha }}
13+
cancel-in-progress: true
14+
15+
jobs:
16+
check:
17+
name: bun run check
18+
runs-on: ubuntu-latest
19+
20+
steps:
21+
- name: Checkout repository
22+
uses: actions/checkout@v4
23+
24+
- name: Set up Bun
25+
uses: oven-sh/setup-bun@v1
26+
with:
27+
bun-version: 1.x
28+
29+
- name: Cache Bun dependencies
30+
uses: actions/cache@v4
31+
with:
32+
path: |
33+
~/.bun/install/cache
34+
node_modules
35+
key: ${{ runner.os }}-bun-${{ hashFiles('bun.lock') }}
36+
restore-keys: |
37+
${{ runner.os }}-bun-
38+
39+
- name: Install JS/TS dependencies
40+
run: bun install --frozen-lockfile
41+
42+
- name: Set up Rust (stable)
43+
uses: dtolnay/rust-toolchain@stable
44+
45+
- name: Cache Rust dependencies
46+
uses: Swatinem/rust-cache@v2
47+
with:
48+
workspaces: |
49+
src-tauri -> src-tauri/target
50+
cache-on-failure: true
51+
52+
- name: Run checks
53+
run: bun run check

0 commit comments

Comments
 (0)