chore(ci): pin node versions using volta #305
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build Status | ||
on: | ||
push: | ||
branches: [ main ] | ||
pull_request: | ||
branches: [ main ] | ||
jobs: | ||
build: | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
os: [macos-latest, windows-latest, ubuntu-latest] | ||
node-version: [8, 18.20.3] | ||
fail-fast: false | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/[email protected] | ||
- name: Setup Node | ||
uses: volta-cli/[email protected] | ||
- name: Switch Node version | ||
run: volta pin node@${{ matrix.node-version }} | ||
- name: Node.js version | ||
run: node -v | ||
- name: npm version | ||
run: npm -v | ||
- run: npm ci | ||
- run: npm run e2e | ||
- run: npm t | ||
# - run: npm run lint |