Skip to content

Commit f60349c

Browse files
authored
Merge pull request #1 from adityamiskin/add-ci-workflow
Add GitHub Actions CI workflow
2 parents 90bf572 + 5dc7b7c commit f60349c

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

.github/workflows/ci.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [main, develop]
6+
pull_request:
7+
branches: [main, develop]
8+
9+
jobs:
10+
build-and-test:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Checkout code
14+
uses: actions/checkout@v4
15+
16+
- name: Install bun
17+
uses: oven-sh/setup-bun@v2
18+
with:
19+
bun-version: 1.3.3
20+
21+
- name: Install dependencies
22+
run: bun install --frozen-lockfile
23+
24+
- name: Run type check
25+
run: bunx tsc --noEmit
26+
27+
- name: Build application
28+
run: bun build src/index.tsx --outfile dist/loki --target bun
29+
30+
- name: Upload build artifact
31+
uses: actions/upload-artifact@v4
32+
with:
33+
name: loki-binary
34+
path: dist/loki

0 commit comments

Comments
 (0)