From 1c79de2f37e8018a145448b13aee2c21bc6295b9 Mon Sep 17 00:00:00 2001 From: C4illin Date: Wed, 13 Aug 2025 20:52:55 +0200 Subject: [PATCH] ci: add bun test workflow --- .github/workflows/check-lint.yml | 2 +- .github/workflows/run-bun-test.yml | 31 ++++++++++++++++++++++++++++++ 2 files changed, 32 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/run-bun-test.yml diff --git a/.github/workflows/check-lint.yml b/.github/workflows/check-lint.yml index 6d0a196..875def5 100644 --- a/.github/workflows/check-lint.yml +++ b/.github/workflows/check-lint.yml @@ -19,7 +19,7 @@ jobs: - name: Checkout code uses: actions/checkout@v5 - - name: Set up Node.js + - name: Set up Bun uses: oven-sh/setup-bun@v2 with: bun-version: 1.2.2 diff --git a/.github/workflows/run-bun-test.yml b/.github/workflows/run-bun-test.yml new file mode 100644 index 0000000..3b5ae85 --- /dev/null +++ b/.github/workflows/run-bun-test.yml @@ -0,0 +1,31 @@ +name: Check Tests + +on: + push: + branches: ["main"] + pull_request: + branches: ["main"] + workflow_dispatch: + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + +jobs: + test: + name: Run tests + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v5 + + - name: Set up Bun + uses: oven-sh/setup-bun@v2 + with: + bun-version: 1.2.2 + + - name: Install dependencies + run: bun install + + - name: Run tests + run: bun test