chore(deps): update dependency @stylistic/eslint-plugin to v3 #28
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
--- | ||
Check failure on line 1 in .github/workflows/web-lint.yaml GitHub Actions / Web LintInvalid workflow file
|
||
name: Web Lint | ||
on: | ||
pull_request: | ||
types: | ||
- opened | ||
- synchronize | ||
- reopened | ||
branches: | ||
- main | ||
- develop | ||
paths: | ||
# Check if a project file changed | ||
- "projects/**/src/**/*.{tsx,ts,css}" | ||
# Check if a dependency changed | ||
- "projects/**/package.json" | ||
- "**/pnpm-workspace.yaml" | ||
# Check if a configuration file changed | ||
- "**/eslint.config.mjs" | ||
- "**/stylelint.config.mjs" | ||
workflow_dispatch: | ||
permissions: | ||
contents: read | ||
pull-requests: read | ||
checks: write | ||
jobs: | ||
install-deps: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
- name: Install pnpm | ||
uses: pnpm/action-setup@v4 | ||
with: | ||
version: "10.x" | ||
- name: Setup Node.JS | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: "22" | ||
cache: "pnpm" | ||
cache-dependency-path: pnpm-lock.yaml | ||
- name: Cache node_modules | ||
id: cache | ||
uses: actions/cache@v4 | ||
with: | ||
path: node_modules | ||
key: cache-node-modules-${{ hashFiles('pnpm-lock.yaml') }} | ||
- name: pnpm install | ||
if: steps.cache.outputs.cache-hit != 'true' | ||
run: pnpm install --frozen-lockfile | ||
web-lint: | ||
runs-on: ubuntu-latest | ||
needs: [install-deps] | ||
strategy: | ||
matrix: | ||
target: [build, lint:js, lint:css] | ||
jobIndex: [1, 2, 3, 4] | ||
env: | ||
jobCount: 4 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
- name: Cache node modules | ||
uses: actions/cache@v4 | ||
with: | ||
path: node_modules | ||
key: cache-node-modules-${{ hashFiles('pnpm-lock.yaml') }} | ||
- name: Cache NX | ||
uses: actions/cache@v4 | ||
with: | ||
path: node_modules/.cache/nx | ||
key: cache-nx-${{ hashFiles('pnpm-lock.yaml') }}-${{ matrix.target }}-${{ github.sha }} | ||
restore-keys: | | ||
cache-nx-${{ hashFiles('pnpm-lock.yaml') }}-${{ matrix.target }}- | ||
cache-nx-${{ hashFiles('pnpm-lock.yaml') }}- | ||
- run: git fetch --no-tags --prune --depth=1 origin main | ||
- name: Print Environment Info | ||
run: pnpm exec nx report | ||
- name: nx run-many:${{ matrix.target }} | ||
run: node ./configs/run-many.mjs "${{ matrix.target }}" "${{ matrix.jobIndex }}" "${{ env.jobCount }}" "$GITHUB_REF" |