Skip to content

Lock file maintenance #901

Lock file maintenance

Lock file maintenance #901

Workflow file for this run

# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
name: PR
on:
pull_request:
branches: [master]
push:
branches: [master]
env:
nodeVersion: 12
jobs:
build:
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
npm: [8]
include:
- os: ubuntu-latest
# npm 6 and 8 have slightly different behavior with verdaccio in publishing tests.
# It's unclear if this translates to meaningful differences in behavior in actual scenarios,
# but test against both versions to be safe. (Only do this on the ubuntu build for speed.)
npm: 6
name: build (${{ matrix.os }}, npm ${{ matrix.npm }})
runs-on: ${{ matrix.os }}
steps:
- name: Check out code
uses: actions/checkout@v3
- name: Set up Node.js ${{ env.nodeVersion }}
uses: actions/setup-node@v3
with:
node-version: ${{ env.nodeVersion }}
# Guarantee a predictable version of npm for the first round of tests
- name: Install package managers
run: npm install --global npm@${{ matrix.npm }} yarn@1
- run: yarn --frozen-lockfile
- run: yarn build
- run: yarn docs:build
- run: yarn checkchange --verbose
- run: yarn test:unit
- run: yarn test:func
- run: yarn test:e2e