chore(deps): update pre-commit hook crate-ci/typos to v1.42.1 #5697
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: CI | |
| # Controls when the action will run. | |
| on: | |
| # Triggers the workflow on push or pull request events but only for the main branch | |
| push: | |
| branches: [main, 1.x, "3.0"] | |
| pull_request: | |
| branches: [main, 1.x, "3.0"] | |
| # Allows you to run this workflow manually from the Actions tab | |
| workflow_dispatch: | |
| concurrency: | |
| # Cancel previous actions from the same PR or branch except 'main' branch. | |
| # See https://docs.github.com/en/actions/using-jobs/using-concurrency and https://docs.github.com/en/actions/learn-github-actions/contexts for more info. | |
| group: concurrency-group::${{ github.workflow }}::${{ github.event.pull_request.number > 0 && format('pr-{0}', github.event.pull_request.number) || github.ref_name }}${{ github.ref_name == 'main' && format('::{0}', github.run_id) || ''}} | |
| cancel-in-progress: ${{ github.ref_name != 'main' }} | |
| env: | |
| HEAD_REF: ${{ github.head_ref }} | |
| jobs: | |
| test: | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| fail-fast: false | |
| max-parallel: 2 | |
| matrix: | |
| # Note, Linux is tested on Buildkite, see /.aspect/workflows | |
| os: ["windows-latest", "macos-latest"] | |
| folder: | |
| - "." | |
| - "e2e/api_entries" | |
| - "e2e/copy_action" | |
| - "e2e/copy_to_directory" | |
| - "e2e/coreutils" | |
| - "e2e/external_copy_to_directory" | |
| - "e2e/smoke" | |
| - "e2e/write_source_files" | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: bazel-contrib/[email protected] | |
| with: | |
| bazelisk-cache: true | |
| disk-cache: ${{ matrix.folder }} | |
| repository-cache: true | |
| - name: bazel test //... | |
| working-directory: ${{ matrix.folder }} | |
| shell: bash | |
| run: | | |
| bazel test //... | |
| - name: Integration tests | |
| # Don't run integration tests on Windows since they are bash scripts and Windows runs Powershell | |
| if: matrix.folder == '.' && matrix.os != 'windows-latest' | |
| # Find all shell scripts within e2e, echo the filename, execute, fail on error | |
| run: find e2e/*.sh -maxdepth 1 -type f -exec sh -c 'echo "\n\n------------------------------- $0 -------------------------------" && "$0" || kill $PPID' \{\} \; | |
| pre-commit: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: pre-commit/[email protected] | |
| - name: Verify BCR patches | |
| run: patch --dry-run -p1 --fuzz 0 < .bcr/patches/*.patch | |
| # For branch protection settings, this job provides a "stable" name that can be used to gate PR merges | |
| # on "all matrix jobs were successful". | |
| conclusion: | |
| needs: [test, pre-commit] | |
| runs-on: ubuntu-latest | |
| if: always() | |
| steps: | |
| - uses: technote-space/workflow-conclusion-action@45ce8e0eb155657ab8ccf346ade734257fd196a5 # v3.0.3 | |
| # Note: possible conclusion values: | |
| # https://github.com/technote-space/workflow-conclusion-action/blob/main/src/constant.ts | |
| - name: report success | |
| if: ${{ env.WORKFLOW_CONCLUSION == 'success' }} | |
| working-directory: /tmp | |
| run: echo ${{ env.WORKFLOW_CONCLUSION }} && exit 0 | |
| - name: report failure | |
| if: ${{ env.WORKFLOW_CONCLUSION == 'failure' }} | |
| working-directory: /tmp | |
| run: echo ${{ env.WORKFLOW_CONCLUSION }} && exit 1 |