Skip to content
This repository has been archived by the owner on Apr 29, 2024. It is now read-only.

Commit

Permalink
ci: Use volta instead of setup-node (#150)
Browse files Browse the repository at this point in the history
* ci: Use volta instead of setup-node

* ci: Fix volta tasks

* Use clearer name for volta versions
  • Loading branch information
oBusk authored Mar 4, 2021
1 parent b1db45a commit c5cd22d
Showing 1 changed file with 10 additions and 16 deletions.
26 changes: 10 additions & 16 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on: [push, pull_request]

jobs:
lint:
name: lint (15.x)
name: lint (default versions)
runs-on: ubuntu-latest
timeout-minutes: 5
env:
Expand All @@ -13,10 +13,8 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Use Node.js 15.x
uses: actions/setup-node@v2
with:
node-version: 15.x
- name: Use Volta Node/NPM
uses: volta-cli/action@v1
- name: Get cache dir, Node Version and NPM Version
id: node-config
run: |
Expand All @@ -38,7 +36,7 @@ jobs:
run: npm run lint

build-with-bundlewatch:
name: build (15.x) [With bundlewatch]
name: build (default versions) [With bundlewatch]
runs-on: ubuntu-latest
timeout-minutes: 5
env:
Expand All @@ -47,10 +45,8 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Use Node.js 15.x
uses: actions/setup-node@v2
with:
node-version: 15.x
- name: Use Volta Node/NPM
uses: volta-cli/action@v1
- name: Get cache dir, Node Version and NPM Version
id: node-config
run: |
Expand All @@ -76,17 +72,15 @@ jobs:
BUNDLEWATCH_GITHUB_TOKEN: ${{ secrets.BUNDLEWATCH_GITHUB_TOKEN }}

test-with-codecov:
name: test (15.x) [With codecov]
name: test (default versions) [With codecov]
runs-on: ubuntu-latest
timeout-minutes: 5

steps:
- name: Checkout
uses: actions/checkout@v2
- name: Use Node.js 15.x
uses: actions/setup-node@v2
with:
node-version: 15.x
- name: Use Volta Node/NPM
uses: volta-cli/action@v1
- name: Get cache dir, Node Version and NPM Version
id: node-config
run: |
Expand Down Expand Up @@ -126,7 +120,7 @@ jobs:
- name: Checkout
uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
uses: volta-cli/action@v1
with:
node-version: ${{ matrix.node-version }}
- name: Get cache dir, Node Version and NPM Version
Expand Down

0 comments on commit c5cd22d

Please sign in to comment.