fix: add cross-env in start command of v4 boilerplate #659
This file contains hidden or 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: Node.js CI | |
on: [push, pull_request] | |
jobs: | |
build-v3: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [18.x] | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v1 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: Install dependencies (v3) | |
run: npm install | |
- name: Test (v3) | |
run: npm run test | |
env: | |
PKG_ROOT: v3 | |
build-v4: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [20.x] | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v1 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: Install dependencies (v4) | |
run: npm install | |
- name: Test (v4) | |
run: npm run test | |
env: | |
PKG_ROOT: v4 | |
build-v3-windows: | |
runs-on: windows-latest | |
strategy: | |
matrix: | |
node-version: [18.x] | |
steps: | |
- name: Configure git | |
run: git config --global core.autocrlf false | |
- uses: actions/checkout@v2 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v1 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: Install dependencies (v3, Windows) | |
run: npm install | |
- name: Test (v3, Windows) | |
run: npm run test | |
env: | |
PKG_ROOT: v3 | |
build-v4-windows: | |
runs-on: windows-latest | |
strategy: | |
matrix: | |
node-version: [20.x] | |
steps: | |
- name: Configure git | |
run: git config --global core.autocrlf false | |
- uses: actions/checkout@v2 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v1 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: Install dependencies (v4, Windows) | |
run: npm install | |
- name: Test (v4, Windows) | |
run: npm run test | |
env: | |
PKG_ROOT: v4 |