chore(deps): replace dependency npm-run-all with npm-run-all2 ^5.0.0 #596
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: CI | |
on: [push, pull_request] | |
jobs: | |
build: | |
strategy: | |
fail-fast: false | |
matrix: | |
node: | |
- '12.17' | |
- '14' | |
- '16' | |
platform: | |
- ubuntu-latest | |
- windows-latest | |
name: '${{matrix.platform}} / Node.js ${{ matrix.node }}' | |
runs-on: ${{matrix.platform}} | |
steps: | |
- name: Configure Git | |
run: | | |
git config --global core.autocrlf false | |
git config --global user.name "xyz" | |
git config --global user.email "[email protected]" | |
- name: Checkout Commit | |
uses: actions/checkout@v1 | |
- name: Setup Node | |
uses: actions/setup-node@v1 | |
with: | |
node-version: ${{ matrix.node }} | |
- name: checkout main | |
run: git branch -f main origin/main | |
- name: install pnpm and npm | |
run: | | |
curl -L https://get.pnpm.io/v6.js | node - add --global pnpm@next npm@7 | |
- name: pnpm install | |
run: pnpm install | |
- name: Audit | |
run: pnpm audit | |
- name: run tests (main) | |
if: github.ref == 'refs/heads/main' | |
run: pnpm run test-main | |
- name: run tests (branch) | |
if: github.ref != 'refs/heads/main' | |
run: pnpm run test-branch |