Skip to content

Commit 704f652

Browse files
Add CI
1 parent fd963e7 commit 704f652

1 file changed

Lines changed: 41 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [main, master, develop]
6+
pull_request:
7+
branches: [main, master, develop]
8+
9+
jobs:
10+
build-and-test:
11+
name: Build and Test
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- name: Checkout code
16+
uses: actions/checkout@v4
17+
18+
- name: Setup Bun
19+
uses: oven-sh/setup-bun@v2
20+
with:
21+
bun-version: latest
22+
23+
- name: Setup Bun cache
24+
uses: actions/cache@v4
25+
with:
26+
path: ~/.bun/install/cache
27+
key: ${{ runner.os }}-bun-${{ hashFiles('**/bun.lockb') }}
28+
restore-keys: |
29+
${{ runner.os }}-bun-
30+
31+
- name: Install dependencies
32+
run: bun install --frozen-lockfile
33+
34+
- name: Run linter
35+
run: bun run lint
36+
37+
- name: Build project
38+
env:
39+
VITE_JOURNIUM_PUBLISHABLE_KEY: ${{ vars.JOURNIUM_PUBLISHABLE_KEY || 'your_journium_publishable_key_here' }}
40+
run: bun run build
41+

0 commit comments

Comments
 (0)