Skip to content

Bump lint-staged from 13.2.2 to 13.2.3 #2290

Bump lint-staged from 13.2.2 to 13.2.3

Bump lint-staged from 13.2.2 to 13.2.3 #2290

Workflow file for this run

name: CI
on: [push]
env:
CI: true
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-20.04]
node-version: [20.x, 18.x, 16.x, 14.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: Cache node modules
uses: actions/cache@v3.3.1
env:
cache-name: cache-node-modules
with:
path: node_modules
key: ${{ runner.os }}-node${{ runner.node-version }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
- run: npm ci
- run: npm run build
- run: npm test
- run: npx prettier --check "src/**"
# Prettier for some reason reports that the formatting is off on Windows.
# Since a single check is sufficient for code formatting, we skip it there:
if: runner.os != 'Windows'
- name: Archive code coverage results
uses: actions/upload-artifact@v3
with:
name: code-coverage-report
path: coverage
- name: Archive production artifacts
uses: actions/upload-artifact@v3
with:
name: dist
path: dist