Skip to content

Commit

Permalink
ci
Browse files Browse the repository at this point in the history
  • Loading branch information
mechairoi committed Dec 2, 2023
1 parent dbe06ad commit 128b31b
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 1 deletion.
41 changes: 41 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: ci

on:
push:
branches:
- main
pull_request:

env:
CI: true

jobs:
check:
env:
API_KEY: test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: oven-sh/setup-bun@v1

- run: bun install
- run: bun run lint
- run: bun run fmt

test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Build
uses: docker/build-push-action@v4
with:
context: .
push: false
target: bun-test
tags: litefs-fts-demo:test
cache-from: type=gha
cache-to: type=gha,mode=max
load: true
- run: docker run --rm litefs-fts-demo:test bun test
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ RUN bun install --frozen-lockfile --production
FROM bun-deps AS bun-test
RUN bun install --frozen-lockfile
COPY --from=tokenizer /work/libsignal_tokenizer.so /app/lib/libsignal_tokenizer.so
ADD app.ts app.spec.ts .
ADD app.ts app.spec.ts index.html .

FROM bun-deps AS bun-runner
COPY --from=flyio/litefs:0.5.9 /usr/local/bin/litefs /usr/local/bin/litefs
Expand Down

0 comments on commit 128b31b

Please sign in to comment.