Merge branch 'main' of https://github.com/Gopher-Industries/SecureShi… #208
Workflow file for this run
This file contains hidden or 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: Lint | |
| on: | |
| pull_request: | |
| branches: [ main ] | |
| paths: | |
| - 'guard_app/**' | |
| - '.github/workflows/lint.yml' | |
| push: | |
| branches: | |
| - '**' # run on pushes to any branch in your fork | |
| paths: | |
| - 'guard_app/**' | |
| - '.github/workflows/lint.yml' | |
| workflow_dispatch: {} # allow manual runs from the Actions tab | |
| jobs: | |
| lint: | |
| name: ESLint & Prettier | |
| runs-on: ubuntu-latest | |
| defaults: | |
| run: | |
| working-directory: guard_app | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: 20 | |
| cache: npm | |
| cache-dependency-path: guard_app/package-lock.json | |
| - name: Install dependencies | |
| run: | | |
| if [ -f package-lock.json ]; then | |
| npm ci | |
| else | |
| npm install --no-audit --no-fund | |
| fi | |
| - name: Run ESLint | |
| run: npm run lint | |
| - name: Run Prettier check | |
| run: npm run format:check |