build(deps-dev): bump the rspack group across 1 directory with 2 updates #4337
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: Test | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| # No GITHUB_TOKEN permissions, as we only use it to increase API limit. | |
| permissions: {} | |
| env: | |
| FORCE_COLOR: 1 | |
| jobs: | |
| lint: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 | |
| with: | |
| persist-credentials: false | |
| - name: Setup Node.js | |
| uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0 | |
| with: | |
| cache: npm | |
| node-version-file: ".nvmrc" | |
| - name: Install | |
| run: npm ci | |
| env: | |
| # Increase GitHub API limit. | |
| GITHUB_TOKEN: ${{ github.token }} | |
| - name: Run prettier | |
| run: npx prettier --check . || (exit_code=$? && npx prettier --write . && git diff --color && exit $exit_code) | |
| - name: Run ESLint | |
| run: npx eslint . | |
| - name: Run lit-analyzer | |
| run: npm run lit-analyzer | |
| - name: Run stylelint | |
| run: npx stylelint '**/*.css' || (exit_code=$? && (npx stylelint --fix '**/*.css' || true) && git diff --color && exit $exit_code) | |
| - name: Run tsc | |
| run: npx --package=typescript tsc --noEmit | |
| - name: Lint l10n strings | |
| run: npm run l10n -- --lint | |
| test: | |
| runs-on: ubuntu-latest | |
| defaults: | |
| run: | |
| working-directory: fred | |
| steps: | |
| - name: Checkout (fred) | |
| uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 | |
| with: | |
| path: fred | |
| persist-credentials: false | |
| - name: Checkout (content) | |
| uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 | |
| with: | |
| repository: mdn/content | |
| path: content | |
| persist-credentials: false | |
| - name: Setup Node.js | |
| uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0 | |
| with: | |
| cache: npm | |
| node-version-file: "fred/.nvmrc" | |
| cache-dependency-path: "fred/package-lock.json" | |
| - name: Install | |
| run: npm ci | |
| env: | |
| GITHUB_TOKEN: ${{ github.token }} | |
| - name: Run unit tests | |
| env: | |
| GITHUB_TOKEN: ${{ github.token }} | |
| run: npm test -- unit | |
| - name: Build | |
| run: npm run build | |
| - name: Run e2e tests | |
| env: | |
| CONTENT_ROOT: ../content/files | |
| GITHUB_TOKEN: ${{ github.token }} | |
| run: npm test -- e2e --fred preview --rari |