refactor(ci): move node to env var, move env var up

So it can be used by all jobs.
This commit is contained in:
fryorcraken.eth 2022-08-19 18:28:57 +10:00
parent 8d1b461d61
commit fd54d21e1a
No known key found for this signature in database
GPG Key ID: A82ED75A8DFC50A4
1 changed files with 6 additions and 5 deletions

View File

@ -8,14 +8,15 @@ on:
- "trying" - "trying"
pull_request: pull_request:
jobs:
build_and_test:
env: env:
BUF_VERSION: "0.56.0" BUF_VERSION: "0.56.0"
NIM_WAKU_VERSION: "v0.9" NIM_WAKU_VERSION: "v0.9"
NODE_JS: "16"
jobs:
build_and_test:
strategy: strategy:
matrix: matrix:
node: [16]
os: [ubuntu-latest] os: [ubuntu-latest]
runs-on: ${{ matrix.os }} runs-on: ${{ matrix.os }}
steps: steps:
@ -33,7 +34,7 @@ jobs:
- name: Install NodeJS - name: Install NodeJS
uses: actions/setup-node@v3 uses: actions/setup-node@v3
with: with:
node-version: ${{ matrix.node }} node-version: ${{ env.NODE_JS }}
- name: Ensure wakunode2 is ready - name: Ensure wakunode2 is ready
shell: bash shell: bash