Skip to content

Commit

Permalink
ci: Setup node with specific version
Browse files Browse the repository at this point in the history
  • Loading branch information
motss committed Mar 26, 2020
1 parent 2e23e56 commit 3797235
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ jobs:
- name: Checkout
uses: actions/checkout@v2

- name: Setup node@${{ target.os }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.target }}
# - name: Install global dependencies
# run: |
# npm i -g npm@latest --quiet
Expand Down Expand Up @@ -59,16 +63,24 @@ jobs:
target: [13.x]

steps:
- name: Setup node@${{ target.os }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.target }}

- name: Download build artifact
uses: actions/download-artifact@v1
with:
name: build-${{ matrix.os }}-${{ matrix.target }}

- name: List versions
run: |
pwd && ls -la && node -v && npm -v && which npm
- name: Install dependencies
run: |
npm ci --quiet
- name: Run Test
run: |
npm run test:dev
Expand Down

0 comments on commit 3797235

Please sign in to comment.