From 81add7c462f07cb9cf6b0d4de9cc8caa71f0b551 Mon Sep 17 00:00:00 2001 From: gudnuf Date: Wed, 11 Dec 2024 12:00:40 -0800 Subject: [PATCH] add bun test workflow --- .github/workflows/ci.yml | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 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 00000000..841f56ca --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,39 @@ +name: CI + +on: + push: + branches: [master] + pull_request: + branches: [master] + +permissions: + contents: read + issues: read + checks: write + pull-requests: write + +jobs: + test: + name: Run Tests + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v3 + + - name: Install Bun + uses: oven-sh/setup-bun@v2 + with: + bun-version: 1.1.34 + + - name: Install dependencies + run: bun install + + - name: Run tests + run: bun test --reporter=junit --reporter-outfile=./bun.xml + + - name: Publish Test Results + uses: EnricoMi/publish-unit-test-result-action@v2 + if: always() + with: + files: | + bun.xml \ No newline at end of file