From a9cdfe81ce5de90ff4171e9d870013d628b60dca Mon Sep 17 00:00:00 2001 From: Nicolas Pennec Date: Wed, 13 Sep 2023 10:11:34 +0200 Subject: [PATCH 1/2] [ci] add Node matrix testing --- .github/workflows/ci.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ea3b343c9f..90e3a702d6 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -11,10 +11,17 @@ on: jobs: ci: + name: Test with Node ${{ matrix.node }} runs-on: ubuntu-latest - + strategy: + matrix: + node: [ 18, 20 ] steps: - uses: actions/checkout@v4 + - name: Setup node + uses: actions/setup-node@v3 + with: + node-version: ${{ matrix.node }} - name: Run tests env: NODE_OPTIONS: "--max_old_space_size=8192" From 469b0b0c82aabadeea82b7828a6f90999c47f999 Mon Sep 17 00:00:00 2001 From: Nicolas Pennec Date: Wed, 13 Sep 2023 13:01:03 +0200 Subject: [PATCH 2/2] [ci] enable npm cache --- .github/workflows/ci.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 90e3a702d6..1b130234a1 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -22,6 +22,7 @@ jobs: uses: actions/setup-node@v3 with: node-version: ${{ matrix.node }} + cache: "npm" - name: Run tests env: NODE_OPTIONS: "--max_old_space_size=8192"