From 417bc9af93b0412fa4f225f52fed666990762a63 Mon Sep 17 00:00:00 2001 From: erseco Date: Sat, 4 Jul 2026 11:03:01 +0100 Subject: [PATCH 1/2] Add GitHub Actions workflow to run unit tests Runs the Deno test suite on every push to master and on pull requests, plus the Bun regression tests when present on the branch. --- .github/workflows/test.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/test.yml diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..ba0f80c --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,29 @@ +name: Tests + +on: + push: + branches: [master] + pull_request: + +jobs: + test: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - uses: denoland/setup-deno@v2 + with: + deno-version: v2.x + + - name: Run Deno tests + run: deno test --no-check tests/simple_cases_test.ts + + - uses: oven-sh/setup-bun@v2 + + - name: Run Bun tests + run: | + if [ -f tests/streaming_regression_test.ts ]; then + bun test tests/streaming_regression_test.ts + else + echo "No Bun tests on this branch" + fi From 0ce19329ba83c0a37663e47486cf147a0456ff5d Mon Sep 17 00:00:00 2001 From: erseco Date: Sat, 4 Jul 2026 11:07:24 +0100 Subject: [PATCH 2/2] Update actions/checkout to v7 --- .github/workflows/test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index ba0f80c..d1ef7e4 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -9,7 +9,7 @@ jobs: test: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v7 - uses: denoland/setup-deno@v2 with: