chore(deps-dev): bump vitest from 3.2.4 to 4.0.18 #4091
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: Node | |
| on: | |
| push: | |
| branches: | |
| - integration | |
| - release | |
| pull_request: | |
| branches: | |
| - integration | |
| - release | |
| jobs: | |
| analyze: | |
| runs-on: ubuntu-latest | |
| name: Lint, Compile, Build, and Test | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Check for changes to this workflow, dependencies, scripts, and single-file components | |
| uses: tj-actions/changed-files@v47 | |
| id: changed-files | |
| with: | |
| files: | | |
| .github/workflows/node.yml | |
| package.json | |
| package-lock.json | |
| **/*.js | |
| **/*.ts | |
| **/*.cjs | |
| **/*.cts | |
| **/*.mjs | |
| **/*.mts | |
| **/*.jsx | |
| **/*.tsx | |
| **/*.vue | |
| - name: Set up Node.js | |
| if: steps.changed-files.outputs.any_changed == 'true' | |
| uses: actions/setup-node@v6 | |
| with: | |
| cache: 'npm' | |
| - name: Install all dependencies | |
| if: steps.changed-files.outputs.any_changed == 'true' | |
| run: npm clean-install | |
| - name: Try to pass linter | |
| if: steps.changed-files.outputs.any_changed == 'true' | |
| id: lint | |
| run: npx eslint . --max-warnings 0 --cache | |
| continue-on-error: true | |
| - name: If linting fails, highlight debug tools | |
| if: steps.lint.outcome == 'failure' | |
| run: | | |
| echo "::notice::Enable lint-on-save in your editor for automatic fixes" | |
| echo "::notice::Run \`npm run lint\` in your dev environment for details about issues that aren't automatically fixable" | |
| exit 1 | |
| - name: Try to pass compiler | |
| if: steps.changed-files.outputs.any_changed == 'true' | |
| id: compile | |
| run: npm run type-check | |
| continue-on-error: true | |
| - name: If compilation fails, highlight debug tools | |
| if: steps.compile.outcome == 'failure' | |
| run: | | |
| echo "::notice::Run \`npm run type-check\` in your dev environment for details about compiler issues" | |
| exit 1 | |
| - name: Try to build for production # "Build" in this context means "transpile, minify, tree-shake, and bundle" | |
| if: steps.changed-files.outputs.any_changed == 'true' | |
| id: build | |
| run: npm run build-only | |
| continue-on-error: true | |
| - name: If building fails, highlight debug tools | |
| if: steps.build.outcome == 'failure' | |
| run: | | |
| echo "::notice::Run \`npm run build-only\` in your dev environment for a detailed report about build failures" | |
| exit 1 | |
| - name: Try to pass all unit tests | |
| if: steps.changed-files.outputs.any_changed == 'true' | |
| id: test_units | |
| run: npm run test:unit | |
| continue-on-error: true | |
| - name: If unit tests fail, highlight debug tools | |
| if: steps.test_units.outcome == 'failure' | |
| run: | | |
| echo "::notice::Run \`npm run test:unit\` in your dev environment for a detailed report about failed unit tests" | |
| exit 1 | |
| - name: Ensure all units are covered | |
| if: steps.changed-files.outputs.any_changed == 'true' | |
| id: test_unit_missing | |
| run: npm run test:unit:ensure-all | |
| continue-on-error: true | |
| - name: If there are missing unit tests, highlight debug tools | |
| if: steps.test_unit_missing.outcome == 'failure' | |
| run: | | |
| echo "::notice::Run \`npm run test:unit -- run && npm run test:unit:ensure-all\` in your dev environment to see which units are missing a test companion" | |
| exit 1 |