From e8d8673561e8a43e9f5a88f0b2ac5a71f6f24db1 Mon Sep 17 00:00:00 2001 From: "Nicholas C. Zakas" Date: Fri, 9 Feb 2024 18:49:02 -0500 Subject: [PATCH 1/5] ci: Run build and tests in Bun --- .github/workflows/ci.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5be851c..6857ab8 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -10,6 +10,7 @@ on: jobs: build: + name: "Node.js v${{ matrix.node-version }} and Deno v${{ matrix.deno-version }} Build" runs-on: ${{ matrix.os }} strategy: @@ -37,3 +38,32 @@ jobs: npm test env: CI: true + bun-build: + name: "Bun v${{ matrix.bun-version }} and Deno v${{ matrix.deno-version }} Build" + runs-on: ${{ matrix.os }} + + strategy: + matrix: + os: [ubuntu-latest] + bun-version: [1.x] + deno-version: [1.x] + + steps: + - uses: actions/checkout@v4 + + - name: Set up Bun ${{ matrix.bun-version }} + uses: oven-sh/setup-bun@v1 + with: + bun-version: ${{ matrix.bun-version }} + + - name: Set up Deno ${{ matrix.deno-version }} + uses: denoland/setup-deno@v1 + with: + deno-version: ${{ matrix.deno-version }} + + - name: bun install, build, and test + run: | + bun install + bun test + env: + CI: true From 24ff32993b6d668c74b40a10f16e17a432ac51f4 Mon Sep 17 00:00:00 2001 From: "Nicholas C. Zakas" Date: Tue, 13 Feb 2024 18:24:16 -0500 Subject: [PATCH 2/5] Limit scope of bun tests --- .github/workflows/ci.yml | 27 +++++++++++++++++---------- 1 file changed, 17 insertions(+), 10 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6857ab8..c28afbb 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -39,14 +39,13 @@ jobs: env: CI: true bun-build: - name: "Bun v${{ matrix.bun-version }} and Deno v${{ matrix.deno-version }} Build" + name: "Bun v${{ matrix.bun-version }} Build" runs-on: ${{ matrix.os }} strategy: matrix: os: [ubuntu-latest] bun-version: [1.x] - deno-version: [1.x] steps: - uses: actions/checkout@v4 @@ -56,14 +55,22 @@ jobs: with: bun-version: ${{ matrix.bun-version }} - - name: Set up Deno ${{ matrix.deno-version }} - uses: denoland/setup-deno@v1 - with: - deno-version: ${{ matrix.deno-version }} + - run: bun install - - name: bun install, build, and test - run: | - bun install - bun test + - name: Test Core Package + run: bun test + working-directory: packages/core + env: + CI: true + + - name: Test Node.js Package + run: bun test + working-directory: packages/node + env: + CI: true + + - name: Test Memory Package + run: bun test + working-directory: packages/memory env: CI: true From 10bf70c1aa50d832f8d7187a5633fb324ef04122 Mon Sep 17 00:00:00 2001 From: "Nicholas C. Zakas" Date: Tue, 27 Feb 2024 16:19:12 -0700 Subject: [PATCH 3/5] Try bun run --- .github/workflows/ci.yml | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c28afbb..de9d088 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -57,20 +57,7 @@ jobs: - run: bun install - - name: Test Core Package - run: bun test + - run: bun run test working-directory: packages/core env: CI: true - - - name: Test Node.js Package - run: bun test - working-directory: packages/node - env: - CI: true - - - name: Test Memory Package - run: bun test - working-directory: packages/memory - env: - CI: true From 8dafdc75775f98800afc931dc47b18d1ce9fdd0b Mon Sep 17 00:00:00 2001 From: "Nicholas C. Zakas" Date: Tue, 27 Feb 2024 16:41:29 -0700 Subject: [PATCH 4/5] Try to do full test with Bun --- .github/workflows/ci.yml | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index de9d088..f2f1d4b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -39,14 +39,14 @@ jobs: env: CI: true bun-build: - name: "Bun v${{ matrix.bun-version }} Build" + name: "Bun v${{ matrix.bun-version }} and Deno v${{ matrix.deno-version }} Build" runs-on: ${{ matrix.os }} strategy: matrix: os: [ubuntu-latest] bun-version: [1.x] - + deno-version: [1.x] steps: - uses: actions/checkout@v4 @@ -55,9 +55,14 @@ jobs: with: bun-version: ${{ matrix.bun-version }} - - run: bun install + - name: Set up Deno ${{ matrix.deno-version }} + uses: denoland/setup-deno@v1 + with: + deno-version: ${{ matrix.deno-version }} - - run: bun run test - working-directory: packages/core + - name: bun install, build, and test + run: | + bun install + bun run --bun test env: CI: true From 6f364fc90312fc06baedc01c31e538da001feeb6 Mon Sep 17 00:00:00 2001 From: "Nicholas C. Zakas" Date: Wed, 28 Feb 2024 17:26:20 -0700 Subject: [PATCH 5/5] Try again --- .github/workflows/ci.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f2f1d4b..1273278 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -61,6 +61,7 @@ jobs: deno-version: ${{ matrix.deno-version }} - name: bun install, build, and test + working-directory: packages/node run: | bun install bun run --bun test