From c2edd079c823ca89d3a980586e60fe4921d64665 Mon Sep 17 00:00:00 2001 From: Tanya Verma Date: Tue, 19 Nov 2024 11:38:41 -0800 Subject: [PATCH] Setup CI for build and test --- .github/workflows/ci.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..b4da9f1 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,26 @@ +name: CI + +on: + push: + branches: [ main ] + pull_request: + branches: [ main ] + +jobs: + test: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + + - name: Setup Bun + uses: oven-sh/setup-bun@v2.0.1 + + - name: Install dependencies + run: bun install + + - name: Run tests + run: bun test + + - name: Build + run: bun run tsc \ No newline at end of file