From ee6bcb8b3be206661c92d45f58432eb43d9c484c Mon Sep 17 00:00:00 2001 From: Franck Royer Date: Wed, 21 Apr 2021 13:47:28 +1000 Subject: [PATCH] Runs CI on different node & os --- .github/workflows/ci.yml | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c80bef0105..2b73057175 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -12,9 +12,12 @@ jobs: build_and_test: env: BUF_VERSION: '0.41.0' - runs-on: ubuntu-latest + strategy: + matrix: + node: [14] + os: [ubuntu-latest] + runs-on: ${{ matrix.os }} steps: - - name: Checkout code uses: actions/checkout@v2 with: @@ -32,12 +35,12 @@ jobs: path: | ./nim-waku/build/wakunode2 ./nim-waku/vendor/rln/target/debug - key: nim-waku-build-v3-${{ steps.nim-waku-head.outputs.ref }} + key: nim-waku-build-${{ matrix.os }}-v3-${{ steps.nim-waku-head.outputs.ref }} - name: Install NodeJS uses: actions/setup-node@v2 with: - node-version: '14' + node-version: ${{ matrix.node }} # This would have been done part of npm pretest but it gives better # visibility in the CI if done as a separate step @@ -70,7 +73,7 @@ jobs: uses: actions/cache@v2 with: path: ~/.npm - key: node-v1-${{ hashFiles('**/package-lock.json') }} + key: node-${{ matrix.os }}-${{ matrix.node }}-v1-${{ hashFiles('**/package-lock.json') }} - name: install using npm ci uses: bahmutov/npm-install@v1