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"
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