mirror of https://github.com/status-im/js-waku.git
refactor(ci): move node to env var, move env var up
So it can be used by all jobs.
This commit is contained in:
parent
8d1b461d61
commit
fd54d21e1a
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue