From a2fd703aee6e0cf5649a75b018ac2657b4f7078e Mon Sep 17 00:00:00 2001 From: Taras Mankovski <74687+taras@users.noreply.github.com> Date: Tue, 7 Jul 2026 15:42:39 -0400 Subject: [PATCH 1/2] =?UTF-8?q?=F0=9F=91=B7=20run=20tests=20in=20CI=20on?= =?UTF-8?q?=20each=20pull=20request?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add a CI workflow that runs formatting, lint, type check, and the test suite on every pull request and on pushes to main. Also pin the Deno version (2.9.1) across all workflows so CI is reproducible and version bumps are deliberate. --- .github/workflows/ci.yaml | 31 +++++++++++++++++++++++++++++++ .github/workflows/publish.yaml | 8 ++++---- 2 files changed, 35 insertions(+), 4 deletions(-) create mode 100644 .github/workflows/ci.yaml diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml new file mode 100644 index 0000000..57e8e4d --- /dev/null +++ b/.github/workflows/ci.yaml @@ -0,0 +1,31 @@ +name: CI + +on: + pull_request: + push: + branches: + - main + +jobs: + test: + runs-on: ubuntu-latest + steps: + - name: checkout + uses: actions/checkout@v4 + + - name: setup deno + uses: denoland/setup-deno@v2 + with: + deno-version: 2.9.1 + + - name: check formatting + run: deno fmt --check + + - name: lint + run: deno lint + + - name: type check + run: deno check mod.ts main.ts + + - name: run tests + run: deno test -A diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index eb42d4b..6b60c5a 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -19,7 +19,7 @@ jobs: - name: setup deno uses: denoland/setup-deno@v2 with: - deno-version: v2.x + deno-version: 2.9.1 - name: Get Version id: vars @@ -40,7 +40,7 @@ jobs: - name: setup deno uses: denoland/setup-deno@v2 with: - deno-version: v2.x + deno-version: 2.9.1 - name: Get Version id: vars @@ -96,7 +96,7 @@ jobs: - name: setup deno uses: denoland/setup-deno@v2 with: - deno-version: v2.x + deno-version: 2.9.1 - name: Get Version id: vars @@ -116,7 +116,7 @@ jobs: - uses: denoland/setup-deno@v2 with: - deno-version: v2.x + deno-version: 2.9.1 - run: mkdir bin From 81114cdfc2a2ce3d13b7536fd4fba6a08e29a885 Mon Sep 17 00:00:00 2001 From: Taras Mankovski <74687+taras@users.noreply.github.com> Date: Tue, 7 Jul 2026 15:44:41 -0400 Subject: [PATCH 2/2] =?UTF-8?q?=F0=9F=91=B7=20rename=20CI=20workflow=20to?= =?UTF-8?q?=20Verify?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/{ci.yaml => verify.yaml} | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) rename .github/workflows/{ci.yaml => verify.yaml} (97%) diff --git a/.github/workflows/ci.yaml b/.github/workflows/verify.yaml similarity index 97% rename from .github/workflows/ci.yaml rename to .github/workflows/verify.yaml index 57e8e4d..f6bc3ac 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/verify.yaml @@ -1,4 +1,4 @@ -name: CI +name: Verify on: pull_request: