name: CI
on: [push]
jobs:
  test:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2
      - uses: actions/setup-node@v1
        with:
          node-version: 14.x
      - run: npm ci --no-optional --no-audit --progress=false
      - run: npm run dist
      - run: npm run report:size
      - run: npm run report:package
      - run: npm run test:performance
      - uses: actions/upload-artifact@v2
        with:
          name: reports
          path: public

name: CI
on:
  push:
    branches-ignore:
      - "gh-pages"
  pull_request:
jobs:
  test:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2
      - id: nvm
        run: echo "##[set-output name=NVMRC;]$(cat .nvmrc)"
      - uses: actions/setup-node@v2-beta
        with:
          node-version: "${{ steps.nvm.outputs.NVMRC }}"
      - run: npm install --no-optional --no-audit --no-fund --progress=false
      - run: npm run dist
      - run: npm run report:size
      - run: npm run report:package
      - run: npm run test:performance
      - uses: actions/upload-artifact@v2
        with:
          name: reports
          path: public
          retention-days: 1

Tweak GitHub Actions build to use nvm
Tweak GitHub Actions build to use nvm
