From 52e51e722cd5093a41f0d31ddcfce2ca5276fbd4 Mon Sep 17 00:00:00 2001 From: Benjamin Palko Date: Sun, 9 Mar 2025 13:02:15 -0400 Subject: [PATCH] CI --- .github/workflows/ci.yml | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 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..1fda083 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,37 @@ +name: CI + +on: + push: + branches: + - main + - dev + pull_request: + +# cancel in-progress runs on new commits to same PR (gitub.event.number) +concurrency: + group: ${{ github.workflow }}-${{ github.event.number || github.sha }} + cancel-in-progress: true + +permissions: + contents: read # to fetch code (actions/checkout) + +jobs: + Check: + runs-on: ubuntu-24.04 + steps: + - uses: actions/checkout@v3 + - uses: oven-sh/setup-bun@v2 + with: + bun-version-file: .tool-versions + run_install: true + - run: bun check + + Tests: + runs-on: ubuntu-24.04 + steps: + - uses: actions/checkout@v3 + - uses: oven-sh/setup-bun@v2 + with: + bun-version-file: .tool-versions + run_install: true + - run: bun test \ No newline at end of file