Skip to content

Commit 8e77ded

Browse files
authored
Merge pull request #102 from DEVxNetwork/ci/pr-checks
ci: add PR check workflow for lint, typecheck, and build
2 parents 6c022cd + e5ba684 commit 8e77ded

1 file changed

Lines changed: 31 additions & 0 deletions

File tree

.github/workflows/check.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Check
2+
3+
on:
4+
pull_request:
5+
branches: ["main"]
6+
7+
concurrency:
8+
group: "check-${{ github.head_ref }}"
9+
cancel-in-progress: true
10+
11+
jobs:
12+
check:
13+
runs-on: ubuntu-latest
14+
env:
15+
NEXT_PUBLIC_SUPABASE_URL: ${{ secrets.NEXT_PUBLIC_SUPABASE_URL }}
16+
NEXT_PUBLIC_SUPABASE_ANON_KEY: ${{ secrets.NEXT_PUBLIC_SUPABASE_ANON_KEY }}
17+
steps:
18+
- name: Checkout
19+
uses: actions/checkout@v4
20+
- name: Setup Bun
21+
uses: oven-sh/setup-bun@v1
22+
with:
23+
bun-version: latest
24+
- name: Install dependencies
25+
run: bun install
26+
- name: Lint
27+
run: bun run lint
28+
- name: Type check
29+
run: bunx tsc --noEmit
30+
- name: Build
31+
run: bun run build

0 commit comments

Comments
 (0)