Skip to content

Make caching conditional #1448

Make caching conditional

Make caching conditional #1448

Workflow file for this run

name: "Javascript lint"
on: [push, pull_request]
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Node
uses: actions/setup-node@v4
with:
node-version: 18
- name: Install standard and React plugin for ESlint
run: |
npm install [email protected] --location=global
npm install [email protected] --location=global
npm install [email protected] --location=global
- name: Lint with standard
run: |
standard
- name: Check for webpack bundles produced in development mode
run: |
if grep -l 'ATTENTION: The "eval" devtool has been used (maybe by default in mode: "development").' $(find . -name "*.js")
then echo "Error: found a webpack bundle that was produced in development mode (needs to be production mode)"
exit 1
fi