ci: support mutiple node versions
This commit is contained in:
parent
7a2182d752
commit
2617fd0823
17
.github/workflows/nodejs.yml
vendored
17
.github/workflows/nodejs.yml
vendored
@ -1,4 +1,4 @@
|
||||
name: Node CI
|
||||
name: CI
|
||||
|
||||
# Triggers the workflow on push or pull request events but only for the master branch
|
||||
on:
|
||||
@ -18,6 +18,11 @@ jobs:
|
||||
- name: checkout
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- name: Use Node.js ${{ matrix.node-version }}
|
||||
uses: actions/setup-node@v2
|
||||
with:
|
||||
node-version: ${{ matrix.node-version }}
|
||||
|
||||
- name: cache yarn.lock
|
||||
uses: actions/cache@v2
|
||||
with:
|
||||
@ -50,6 +55,11 @@ jobs:
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
|
||||
- name: Use Node.js ${{ matrix.node-version }}
|
||||
uses: actions/setup-node@v2
|
||||
with:
|
||||
node-version: ${{ matrix.node-version }}
|
||||
|
||||
- name: Restore cache from yarn.lock
|
||||
uses: actions/cache@v2
|
||||
with:
|
||||
@ -73,6 +83,11 @@ jobs:
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
|
||||
- name: Use Node.js ${{ matrix.node-version }}
|
||||
uses: actions/setup-node@v2
|
||||
with:
|
||||
node-version: ${{ matrix.node-version }}
|
||||
|
||||
- name: Restore cache from yarn.lock
|
||||
uses: actions/cache@v2
|
||||
with:
|
||||
|
Loading…
Reference in New Issue
Block a user