Update all npm dependencies (2023-08-18) (#1724) #1224
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: | |
branches: | |
- master | |
pull_request: | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [16.x] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: Install NPM@7 | |
run: npm i -g npm@7 | |
- name: install libgbm1 | |
run: sudo apt-get install -y libgbm1 | |
- uses: actions/cache@v3 | |
id: npm-cache | |
with: | |
path: node_modules | |
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} | |
restore-keys: | | |
${{ runner.os }}-node- | |
- name: Intall deps | |
if: steps.npm-cache.outputs.cache-hit != 'true' | |
run: | | |
npm ci | |
- name: Lint | |
run: npm run lint | |
- name: Test | |
run: npm run test -- --watch=false | |
- name: Build | |
run: npm run build:prod | |