This repository has been archived by the owner on Sep 24, 2024. It is now read-only.
Bump eslint from 8.40.0 to 8.46.0 #776
Workflow file for this run
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: | |
pull_request: | |
branches: | |
- main | |
- 'releases/*' | |
push: | |
branches: | |
- main | |
- 'releases/*' | |
jobs: | |
check: | |
name: Check | |
runs-on: ubuntu-22.04 | |
steps: | |
- | |
name: Checkout code | |
uses: actions/checkout@v3 | |
- | |
name: Set Node.js 19.x | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 19.x | |
- | |
name: Cache dependencies | |
uses: actions/cache@v3 | |
with: | |
path: '**/node_modules' | |
key: ${{ runner.os }}-modules-${{ hashFiles('**/package-lock.json') }} | |
- | |
name: Install dependencies | |
run: npm install | |
- | |
name: Run | |
run: npm run all | |
dist: | |
name: Dist | |
runs-on: ubuntu-22.04 | |
steps: | |
- | |
name: Checkout code | |
uses: actions/checkout@v3 | |
- | |
name: Set Node.js 19.x | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 19.x | |
- | |
name: Cache dependencies | |
uses: actions/cache@v3 | |
with: | |
path: '**/node_modules' | |
key: ${{ runner.os }}-modules-${{ hashFiles('**/package-lock.json') }} | |
- | |
name: Install dependencies | |
run: npm ci | |
- | |
name: Rebuild the dist/ directory | |
run: npm run build | |
- | |
name: Compare the expected and actual dist/ directories | |
run: | | |
if [ "$(git diff --ignore-space-at-eol dist/ | wc -l)" -gt "0" ]; then | |
echo "Detected uncommitted changes after build. See status below:" | |
git diff | |
exit 1 | |
fi |