From 4ba83a1a4427e8d278787279ec9bf3ac9cf76cdb Mon Sep 17 00:00:00 2001 From: silverwind Date: Tue, 28 May 2024 00:33:05 +0200 Subject: [PATCH] tweak actions matrix --- .github/workflows/ci.yaml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 94a404b..53a254e 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -6,17 +6,20 @@ jobs: strategy: fail-fast: false matrix: - node: [18, 20, 22] + js: [[node, 18], [node, 20], [node,22], [bun,1]] os: [ubuntu-latest, macos-latest, windows-latest] - bun: [latest] runs-on: ${{matrix.os}} steps: - uses: actions/checkout@v4 - uses: actions/setup-node@v4 with: - node-version: ${{matrix.node}} + node-version: ${{matrix.js[1]}} + if: ${{matrix.js[0] == 'node'}} - uses: oven-sh/setup-bun@v1 with: - bun-version: ${{matrix.bun}} + bun-version: ${{matrix.js[1]}} + if: ${{matrix.js[0] == 'bun'}} - run: make lint test + if: ${{matrix.js[0] == 'node'}} - run: bun test + if: ${{matrix.js[0] == 'bun'}}