change div to p #22
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: CI/CD - Run lint and formatting checkout | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| types: | |
| - opened | |
| - synchronize | |
| jobs: | |
| lint-and-format: | |
| runs-on: [self-hosted] | |
| timeout-minutes: 10 | |
| env: | |
| SITE_ROOT: /var/www/html/project1 | |
| npm_config_cache: ${{ github.workspace }}/.npm-cache | |
| TMPDIR: ${{ github.workspace }}/.tmp | |
| steps: | |
| - name: Check out source | |
| uses: actions/checkout@v4 | |
| - name: Install dependencies | |
| run: | | |
| mkdir -p "$TMPDIR" | |
| npm ci --no-audit --no-fund | |
| - name: Run Prettier check | |
| run: npx prettier . --check | |
| - name: Run ESLint | |
| run: npm run lint | |
| - name: Run Tests | |
| run: npm run test |