chore(deps): bump fast-xml-parser and is-svg in /packages/sharec-docs #843
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
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
branches: | |
- '*' | |
jobs: | |
lint: | |
strategy: | |
matrix: | |
os: [ubuntu-latest] | |
node_version: ['16.x'] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-node@v2 | |
with: | |
version: '16.x' | |
- name: Restore npm cache | |
uses: actions/cache@v2 | |
with: | |
path: | | |
node_modules | |
key: ${{ runner.os }}-${{ hashFiles('./package-lock.json') }} | |
- name: Install dependencies | |
run: | | |
npm i | |
- name: Running linters | |
run: | | |
npm run lint | |
test: | |
strategy: | |
matrix: | |
os: [ubuntu-latest, macOS-latest, windows-latest] | |
node_version: ['12.x', '14.x', '16.x'] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-node@v2 | |
with: | |
version: ${{ matrix.node_version }} | |
- name: Install dependencies | |
run: | | |
npm i | |
- name: Restore lerna cache | |
uses: actions/cache@v2 | |
with: | |
path: | | |
node_modules | |
*/*/node_modules | |
key: ${{ runner.os }}-${{ hashFiles('**/package-lock.json') }} | |
- name: Install packages dependencies | |
run: | | |
npx lerna bootstrap | |
- name: Running tests | |
run: | | |
npx lerna run test |