Deprecated resource policy #624
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: Lint assets and playwright tests | |
on: | |
pull_request: | |
branches: [ main, '**-feature' ] | |
types: [ opened, synchronize, reopened] | |
env: | |
NODE_VERSION: 18.13.0 | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
name: Run linters | |
steps: | |
- uses: actions/checkout@v4 | |
name: Check out repository | |
- uses: actions/setup-node@v3 | |
name: Set up Node.js | |
with: | |
node-version: ${{ env.NODE_VERSION }} | |
cache: npm | |
cache-dependency-path: | | |
DfE.FindInformationAcademiesTrusts/package-lock.json | |
tests/playwright/package-lock.json | |
- name: Install dependencies | |
run: | | |
(cd DfE.FindInformationAcademiesTrusts && npm ci) | |
(cd tests/playwright && npm ci) | |
- name: Analyse front end assets | |
run: | | |
cd DfE.FindInformationAcademiesTrusts && npm run lint | |
- name: Analyse playwright tests | |
run: | | |
cd tests/playwright && npm run lint |