name: test:lint:cypress on: push jobs: files-changed: name: Detect File Changes - lint - cypress runs-on: ubuntu-latest outputs: cypress: ${{ steps.filter.outputs.cypress }} steps: - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v5.0.0 - uses: dorny/paths-filter@de90cc6fb38fc0963ad72b210f1f284cd68cea36 # v3.0.2 id: filter with: filters: | cypress: - '.github/workflows/test.lint.cypress.yml' - '.github/workflows/test.e2e.yml' - 'cypress/**/*' lint: if: needs.files-changed.outputs.cypress == 'true' name: Lint - cypress needs: files-changed runs-on: ubuntu-latest steps: - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v5.0.0 - uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v5.0.0 with: node-version-file: '.tool-versions' - name: Lint run: npm install && npm run lint working-directory: cypress/