-
-
Notifications
You must be signed in to change notification settings - Fork 5
37 lines (35 loc) · 1018 Bytes
/
Copy pathci.yml
File metadata and controls
37 lines (35 loc) · 1018 Bytes
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
name: CI
on:
push:
branches: ["**"]
pull_request:
jobs:
checks:
name: Run checks
if: ${{ github.event_name != 'pull_request' || github.repository != github.event.pull_request.head.repo.full_name }}
runs-on: namespace-profile-linux-default
steps:
- name: Checkout Repository
uses: namespacelabs/nscloud-checkout-action@v9
- name: Setup Node
uses: actions/setup-node@v7
with:
node-version: 24
- name: Setup Bun
uses: oven-sh/setup-bun@v2
- name: Set up cache
uses: namespacelabs/nscloud-cache-action@v1
with:
cache: "bun"
- name: Install dependencies
run: bun install
- name: Check formatting
run: bun run format:check
- name: Lint
run: bun run lint
- name: Check
run: bun run check
- name: Build and test
run: bun run test
- name: Build deployment bundle
run: bunx wrangler deploy --config wrangler.jsonc --dry-run