chore: fix lint using non-existent configs #127
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: Site workflow | |
| on: | |
| push: | |
| # Only accept deploying from the main branch | |
| branches: [main] | |
| jobs: | |
| test: | |
| name: App linting/testing | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Setup NodeJS LTS | |
| uses: actions/setup-node@v6 | |
| with: | |
| node-version: '18.x' | |
| - name: Setup Angular problem matchers | |
| uses: EdricChan03/angular-problem-matchers-action@v0.0.0 | |
| - name: Cache node modules | |
| uses: actions/cache@v5 | |
| id: node_modules_cache | |
| with: | |
| path: node_modules | |
| key: ${{ runner.os }}-node_modules-${{ hashFiles('**/package-lock.json') }} | |
| restore-keys: | | |
| ${{ runner.os }}-node_modules-${{ hashFiles('**/package-lock.json') }}- | |
| ${{ runner.os }}-node_modules- | |
| ${{ runner.os }}- | |
| - name: Install dependencies | |
| # Skip this step if a cache hit occurs on the key | |
| if: steps.node_modules_cache.outputs.cache-hit != 'true' | |
| run: npm ci | |
| - name: Lint application | |
| run: npm run lint | |
| - name: Test application | |
| run: npm run action:test |