From fd54d21e1a154d8123bcd2a66a42888556f96f1a Mon Sep 17 00:00:00 2001 From: "fryorcraken.eth" Date: Fri, 19 Aug 2022 18:28:57 +1000 Subject: [PATCH] refactor(ci): move node to env var, move env var up So it can be used by all jobs. --- .github/workflows/ci.yml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 17b358ff9d..1d9864a9a5 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -8,14 +8,15 @@ on: - "trying" pull_request: +env: + BUF_VERSION: "0.56.0" + NIM_WAKU_VERSION: "v0.9" + NODE_JS: "16" + jobs: build_and_test: - env: - BUF_VERSION: "0.56.0" - NIM_WAKU_VERSION: "v0.9" strategy: matrix: - node: [16] os: [ubuntu-latest] runs-on: ${{ matrix.os }} steps: @@ -33,7 +34,7 @@ jobs: - name: Install NodeJS uses: actions/setup-node@v3 with: - node-version: ${{ matrix.node }} + node-version: ${{ env.NODE_JS }} - name: Ensure wakunode2 is ready shell: bash