run_tests.yml

  1# Generated from xtask::workflows::run_tests
  2# Rebuild with `cargo xtask workflows`.
  3name: run_tests
  4env:
  5  CARGO_TERM_COLOR: always
  6  RUST_BACKTRACE: '1'
  7  CARGO_INCREMENTAL: '0'
  8on:
  9  pull_request:
 10    branches:
 11    - '**'
 12  push:
 13    branches:
 14    - main
 15    - v[0-9]+.[0-9]+.x
 16jobs:
 17  orchestrate:
 18    if: (github.repository_owner == 'zed-industries' || github.repository_owner == 'zed-extensions')
 19    runs-on: namespace-profile-2x4-ubuntu-2404
 20    steps:
 21    - name: steps::checkout_repo
 22      uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
 23      with:
 24        clean: false
 25        fetch-depth: ${{ github.ref == 'refs/heads/main' && 2 || 350 }}
 26    - id: filter
 27      name: filter
 28      run: |
 29        if [ -z "$GITHUB_BASE_REF" ]; then
 30          echo "Not in a PR context (i.e., push to main/stable/preview)"
 31          COMPARE_REV="$(git rev-parse HEAD~1)"
 32        else
 33          echo "In a PR context comparing to pull_request.base.ref"
 34          git fetch origin "$GITHUB_BASE_REF" --depth=350
 35          COMPARE_REV="$(git merge-base "origin/${GITHUB_BASE_REF}" HEAD)"
 36        fi
 37        CHANGED_FILES="$(git diff --name-only "$COMPARE_REV" ${{ github.sha }})"
 38
 39        check_pattern() {
 40          local output_name="$1"
 41          local pattern="$2"
 42          local grep_arg="$3"
 43
 44          echo "$CHANGED_FILES" | grep "$grep_arg" "$pattern" && \
 45            echo "${output_name}=true" >> "$GITHUB_OUTPUT" || \
 46            echo "${output_name}=false" >> "$GITHUB_OUTPUT"
 47        }
 48
 49        check_pattern "run_action_checks" '^\.github/(workflows/|actions/|actionlint.yml)|tooling/xtask|script/' -qP
 50        check_pattern "run_docs" '^(docs/|crates/.*\.rs)' -qP
 51        check_pattern "run_licenses" '^(Cargo.lock|script/.*licenses)' -qP
 52        check_pattern "run_nix" '^(nix/|flake\.|Cargo\.|rust-toolchain.toml|\.cargo/config.toml)' -qP
 53        check_pattern "run_tests" '^(docs/|script/update_top_ranking_issues/|\.github/(ISSUE_TEMPLATE|workflows/(?!run_tests)))' -qvP
 54      shell: bash -euxo pipefail {0}
 55    outputs:
 56      run_action_checks: ${{ steps.filter.outputs.run_action_checks }}
 57      run_docs: ${{ steps.filter.outputs.run_docs }}
 58      run_licenses: ${{ steps.filter.outputs.run_licenses }}
 59      run_nix: ${{ steps.filter.outputs.run_nix }}
 60      run_tests: ${{ steps.filter.outputs.run_tests }}
 61  check_style:
 62    if: (github.repository_owner == 'zed-industries' || github.repository_owner == 'zed-extensions')
 63    runs-on: namespace-profile-4x8-ubuntu-2204
 64    steps:
 65    - name: steps::checkout_repo
 66      uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
 67      with:
 68        clean: false
 69    - name: steps::cache_rust_dependencies_namespace
 70      uses: namespacelabs/nscloud-cache-action@v1
 71      with:
 72        cache: rust
 73    - name: steps::setup_pnpm
 74      uses: pnpm/action-setup@fe02b34f77f8bc703788d5817da081398fad5dd2
 75      with:
 76        version: '9'
 77    - name: ./script/prettier
 78      run: ./script/prettier
 79      shell: bash -euxo pipefail {0}
 80    - name: steps::cargo_fmt
 81      run: cargo fmt --all -- --check
 82      shell: bash -euxo pipefail {0}
 83    - name: steps::trigger_autofix
 84      if: failure() && github.event_name == 'pull_request' && github.actor != 'zed-zippy[bot]'
 85      run: gh workflow run autofix_pr.yml -f pr_number=${{ github.event.pull_request.number }} -f run_clippy=false
 86      shell: bash -euxo pipefail {0}
 87      env:
 88        GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
 89    - name: ./script/check-todos
 90      run: ./script/check-todos
 91      shell: bash -euxo pipefail {0}
 92    - name: ./script/check-keymaps
 93      run: ./script/check-keymaps
 94      shell: bash -euxo pipefail {0}
 95    - name: run_tests::check_style::check_for_typos
 96      uses: crate-ci/typos@2d0ce569feab1f8752f1dde43cc2f2aa53236e06
 97      with:
 98        config: ./typos.toml
 99    timeout-minutes: 60
100  run_tests_windows:
101    needs:
102    - orchestrate
103    if: needs.orchestrate.outputs.run_tests == 'true'
104    runs-on: self-32vcpu-windows-2022
105    steps:
106    - name: steps::checkout_repo
107      uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
108      with:
109        clean: false
110    - name: steps::setup_cargo_config
111      run: |
112        New-Item -ItemType Directory -Path "./../.cargo" -Force
113        Copy-Item -Path "./.cargo/ci-config.toml" -Destination "./../.cargo/config.toml"
114      shell: pwsh
115    - name: steps::setup_node
116      uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020
117      with:
118        node-version: '20'
119    - name: steps::clippy
120      run: ./script/clippy.ps1
121      shell: pwsh
122    - name: steps::clear_target_dir_if_large
123      run: ./script/clear-target-dir-if-larger-than.ps1 250
124      shell: pwsh
125    - name: steps::cargo_nextest
126      run: cargo nextest run --workspace --no-fail-fast
127      shell: pwsh
128    - name: steps::cleanup_cargo_config
129      if: always()
130      run: |
131        Remove-Item -Recurse -Path "./../.cargo" -Force -ErrorAction SilentlyContinue
132      shell: pwsh
133    timeout-minutes: 60
134  run_tests_linux:
135    needs:
136    - orchestrate
137    if: needs.orchestrate.outputs.run_tests == 'true'
138    runs-on: namespace-profile-16x32-ubuntu-2204
139    steps:
140    - name: steps::checkout_repo
141      uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
142      with:
143        clean: false
144    - name: steps::setup_cargo_config
145      run: |
146        mkdir -p ./../.cargo
147        cp ./.cargo/ci-config.toml ./../.cargo/config.toml
148      shell: bash -euxo pipefail {0}
149    - name: steps::cache_rust_dependencies_namespace
150      uses: namespacelabs/nscloud-cache-action@v1
151      with:
152        cache: rust
153    - name: steps::setup_linux
154      run: ./script/linux
155      shell: bash -euxo pipefail {0}
156    - name: steps::install_mold
157      run: ./script/install-mold
158      shell: bash -euxo pipefail {0}
159    - name: steps::download_wasi_sdk
160      run: ./script/download-wasi-sdk
161      shell: bash -euxo pipefail {0}
162    - name: steps::setup_node
163      uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020
164      with:
165        node-version: '20'
166    - name: steps::clippy
167      run: ./script/clippy
168      shell: bash -euxo pipefail {0}
169    - name: steps::trigger_autofix
170      if: failure() && github.event_name == 'pull_request' && github.actor != 'zed-zippy[bot]'
171      run: gh workflow run autofix_pr.yml -f pr_number=${{ github.event.pull_request.number }} -f run_clippy=true
172      shell: bash -euxo pipefail {0}
173      env:
174        GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
175    - name: steps::cargo_install_nextest
176      uses: taiki-e/install-action@nextest
177    - name: steps::clear_target_dir_if_large
178      run: ./script/clear-target-dir-if-larger-than 250
179      shell: bash -euxo pipefail {0}
180    - name: steps::cargo_nextest
181      run: cargo nextest run --workspace --no-fail-fast
182      shell: bash -euxo pipefail {0}
183    - name: steps::cleanup_cargo_config
184      if: always()
185      run: |
186        rm -rf ./../.cargo
187      shell: bash -euxo pipefail {0}
188    timeout-minutes: 60
189  run_tests_mac:
190    needs:
191    - orchestrate
192    if: needs.orchestrate.outputs.run_tests == 'true'
193    runs-on: self-mini-macos
194    steps:
195    - name: steps::checkout_repo
196      uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
197      with:
198        clean: false
199    - name: steps::setup_cargo_config
200      run: |
201        mkdir -p ./../.cargo
202        cp ./.cargo/ci-config.toml ./../.cargo/config.toml
203      shell: bash -euxo pipefail {0}
204    - name: steps::setup_node
205      uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020
206      with:
207        node-version: '20'
208    - name: steps::clippy
209      run: ./script/clippy
210      shell: bash -euxo pipefail {0}
211    - name: steps::clear_target_dir_if_large
212      run: ./script/clear-target-dir-if-larger-than 300
213      shell: bash -euxo pipefail {0}
214    - name: steps::cargo_nextest
215      run: cargo nextest run --workspace --no-fail-fast
216      shell: bash -euxo pipefail {0}
217    - name: steps::cleanup_cargo_config
218      if: always()
219      run: |
220        rm -rf ./../.cargo
221      shell: bash -euxo pipefail {0}
222    timeout-minutes: 60
223  doctests:
224    needs:
225    - orchestrate
226    if: needs.orchestrate.outputs.run_tests == 'true'
227    runs-on: namespace-profile-16x32-ubuntu-2204
228    steps:
229    - name: steps::checkout_repo
230      uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
231      with:
232        clean: false
233    - name: steps::cache_rust_dependencies_namespace
234      uses: namespacelabs/nscloud-cache-action@v1
235      with:
236        cache: rust
237    - name: steps::setup_linux
238      run: ./script/linux
239      shell: bash -euxo pipefail {0}
240    - name: steps::install_mold
241      run: ./script/install-mold
242      shell: bash -euxo pipefail {0}
243    - name: steps::download_wasi_sdk
244      run: ./script/download-wasi-sdk
245      shell: bash -euxo pipefail {0}
246    - name: steps::setup_cargo_config
247      run: |
248        mkdir -p ./../.cargo
249        cp ./.cargo/ci-config.toml ./../.cargo/config.toml
250      shell: bash -euxo pipefail {0}
251    - id: run_doctests
252      name: run_tests::doctests::run_doctests
253      run: |
254        cargo test --workspace --doc --no-fail-fast
255      shell: bash -euxo pipefail {0}
256    - name: steps::cleanup_cargo_config
257      if: always()
258      run: |
259        rm -rf ./../.cargo
260      shell: bash -euxo pipefail {0}
261    timeout-minutes: 60
262  check_workspace_binaries:
263    needs:
264    - orchestrate
265    if: needs.orchestrate.outputs.run_tests == 'true'
266    runs-on: namespace-profile-8x16-ubuntu-2204
267    steps:
268    - name: steps::checkout_repo
269      uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
270      with:
271        clean: false
272    - name: steps::setup_cargo_config
273      run: |
274        mkdir -p ./../.cargo
275        cp ./.cargo/ci-config.toml ./../.cargo/config.toml
276      shell: bash -euxo pipefail {0}
277    - name: steps::cache_rust_dependencies_namespace
278      uses: namespacelabs/nscloud-cache-action@v1
279      with:
280        cache: rust
281    - name: steps::setup_linux
282      run: ./script/linux
283      shell: bash -euxo pipefail {0}
284    - name: steps::install_mold
285      run: ./script/install-mold
286      shell: bash -euxo pipefail {0}
287    - name: steps::download_wasi_sdk
288      run: ./script/download-wasi-sdk
289      shell: bash -euxo pipefail {0}
290    - name: cargo build -p collab
291      run: cargo build -p collab
292      shell: bash -euxo pipefail {0}
293    - name: cargo build --workspace --bins --examples
294      run: cargo build --workspace --bins --examples
295      shell: bash -euxo pipefail {0}
296    - name: steps::cleanup_cargo_config
297      if: always()
298      run: |
299        rm -rf ./../.cargo
300      shell: bash -euxo pipefail {0}
301    timeout-minutes: 60
302  check_dependencies:
303    needs:
304    - orchestrate
305    if: needs.orchestrate.outputs.run_tests == 'true'
306    runs-on: namespace-profile-2x4-ubuntu-2404
307    steps:
308    - name: steps::checkout_repo
309      uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
310      with:
311        clean: false
312    - name: steps::cache_rust_dependencies_namespace
313      uses: namespacelabs/nscloud-cache-action@v1
314      with:
315        cache: rust
316    - name: run_tests::check_dependencies::install_cargo_machete
317      uses: clechasseur/rs-cargo@8435b10f6e71c2e3d4d3b7573003a8ce4bfc6386
318      with:
319        command: install
320        args: cargo-machete@0.7.0
321    - name: run_tests::check_dependencies::run_cargo_machete
322      uses: clechasseur/rs-cargo@8435b10f6e71c2e3d4d3b7573003a8ce4bfc6386
323      with:
324        command: machete
325    - name: run_tests::check_dependencies::check_cargo_lock
326      run: cargo update --locked --workspace
327      shell: bash -euxo pipefail {0}
328    - name: run_tests::check_dependencies::check_vulnerable_dependencies
329      if: github.event_name == 'pull_request'
330      uses: actions/dependency-review-action@67d4f4bd7a9b17a0db54d2a7519187c65e339de8
331      with:
332        license-check: false
333    timeout-minutes: 60
334  check_docs:
335    needs:
336    - orchestrate
337    if: needs.orchestrate.outputs.run_docs == 'true'
338    runs-on: namespace-profile-8x16-ubuntu-2204
339    steps:
340    - name: steps::checkout_repo
341      uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
342      with:
343        clean: false
344    - name: steps::setup_cargo_config
345      run: |
346        mkdir -p ./../.cargo
347        cp ./.cargo/ci-config.toml ./../.cargo/config.toml
348      shell: bash -euxo pipefail {0}
349    - name: steps::cache_rust_dependencies_namespace
350      uses: namespacelabs/nscloud-cache-action@v1
351      with:
352        cache: rust
353    - name: run_tests::check_docs::lychee_link_check
354      uses: lycheeverse/lychee-action@82202e5e9c2f4ef1a55a3d02563e1cb6041e5332
355      with:
356        args: --no-progress --exclude '^http' './docs/src/**/*'
357        fail: true
358        jobSummary: false
359    - name: steps::setup_linux
360      run: ./script/linux
361      shell: bash -euxo pipefail {0}
362    - name: steps::install_mold
363      run: ./script/install-mold
364      shell: bash -euxo pipefail {0}
365    - name: steps::download_wasi_sdk
366      run: ./script/download-wasi-sdk
367      shell: bash -euxo pipefail {0}
368    - name: run_tests::check_docs::install_mdbook
369      uses: peaceiris/actions-mdbook@ee69d230fe19748b7abf22df32acaa93833fad08
370      with:
371        mdbook-version: 0.4.37
372    - name: run_tests::check_docs::build_docs
373      run: |
374        mkdir -p target/deploy
375        mdbook build ./docs --dest-dir=../target/deploy/docs/
376      shell: bash -euxo pipefail {0}
377    - name: run_tests::check_docs::lychee_link_check
378      uses: lycheeverse/lychee-action@82202e5e9c2f4ef1a55a3d02563e1cb6041e5332
379      with:
380        args: --no-progress --exclude '^http' 'target/deploy/docs'
381        fail: true
382        jobSummary: false
383    timeout-minutes: 60
384  check_licenses:
385    needs:
386    - orchestrate
387    if: needs.orchestrate.outputs.run_licenses == 'true'
388    runs-on: namespace-profile-2x4-ubuntu-2404
389    steps:
390    - name: steps::checkout_repo
391      uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
392      with:
393        clean: false
394    - name: steps::cache_rust_dependencies_namespace
395      uses: namespacelabs/nscloud-cache-action@v1
396      with:
397        cache: rust
398    - name: ./script/check-licenses
399      run: ./script/check-licenses
400      shell: bash -euxo pipefail {0}
401    - name: ./script/generate-licenses
402      run: ./script/generate-licenses
403      shell: bash -euxo pipefail {0}
404  check_scripts:
405    needs:
406    - orchestrate
407    if: needs.orchestrate.outputs.run_action_checks == 'true'
408    runs-on: namespace-profile-2x4-ubuntu-2404
409    steps:
410    - name: steps::checkout_repo
411      uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
412      with:
413        clean: false
414    - name: run_tests::check_scripts::run_shellcheck
415      run: ./script/shellcheck-scripts error
416      shell: bash -euxo pipefail {0}
417    - id: get_actionlint
418      name: run_tests::check_scripts::download_actionlint
419      run: bash <(curl https://raw.githubusercontent.com/rhysd/actionlint/main/scripts/download-actionlint.bash)
420      shell: bash -euxo pipefail {0}
421    - name: run_tests::check_scripts::run_actionlint
422      run: |
423        ${{ steps.get_actionlint.outputs.executable }} -color
424      shell: bash -euxo pipefail {0}
425    - name: run_tests::check_scripts::check_xtask_workflows
426      run: |
427        cargo xtask workflows
428        if ! git diff --exit-code .github; then
429          echo "Error: .github directory has uncommitted changes after running 'cargo xtask workflows'"
430          echo "Please run 'cargo xtask workflows' locally and commit the changes"
431          exit 1
432        fi
433      shell: bash -euxo pipefail {0}
434    timeout-minutes: 60
435  build_nix_linux_x86_64:
436    needs:
437    - orchestrate
438    if: needs.orchestrate.outputs.run_nix == 'true'
439    runs-on: namespace-profile-32x64-ubuntu-2004
440    env:
441      ZED_CLIENT_CHECKSUM_SEED: ${{ secrets.ZED_CLIENT_CHECKSUM_SEED }}
442      ZED_MINIDUMP_ENDPOINT: ${{ secrets.ZED_SENTRY_MINIDUMP_ENDPOINT }}
443      ZED_CLOUD_PROVIDER_ADDITIONAL_MODELS_JSON: ${{ secrets.ZED_CLOUD_PROVIDER_ADDITIONAL_MODELS_JSON }}
444      GIT_LFS_SKIP_SMUDGE: '1'
445    steps:
446    - name: steps::checkout_repo
447      uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
448      with:
449        clean: false
450    - name: nix_build::build_nix::install_nix
451      uses: cachix/install-nix-action@02a151ada4993995686f9ed4f1be7cfbb229e56f
452      with:
453        github_access_token: ${{ secrets.GITHUB_TOKEN }}
454    - name: nix_build::build_nix::cachix_action
455      uses: cachix/cachix-action@0fc020193b5a1fa3ac4575aa3a7d3aa6a35435ad
456      with:
457        name: zed
458        authToken: ${{ secrets.CACHIX_AUTH_TOKEN }}
459        cachixArgs: -v
460        pushFilter: -zed-editor-[0-9.]*-nightly
461    - name: nix_build::build_nix::build
462      run: nix build .#debug -L --accept-flake-config
463      shell: bash -euxo pipefail {0}
464    timeout-minutes: 60
465    continue-on-error: true
466  build_nix_mac_aarch64:
467    needs:
468    - orchestrate
469    if: needs.orchestrate.outputs.run_nix == 'true'
470    runs-on: self-mini-macos
471    env:
472      ZED_CLIENT_CHECKSUM_SEED: ${{ secrets.ZED_CLIENT_CHECKSUM_SEED }}
473      ZED_MINIDUMP_ENDPOINT: ${{ secrets.ZED_SENTRY_MINIDUMP_ENDPOINT }}
474      ZED_CLOUD_PROVIDER_ADDITIONAL_MODELS_JSON: ${{ secrets.ZED_CLOUD_PROVIDER_ADDITIONAL_MODELS_JSON }}
475      GIT_LFS_SKIP_SMUDGE: '1'
476    steps:
477    - name: steps::checkout_repo
478      uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
479      with:
480        clean: false
481    - name: nix_build::build_nix::set_path
482      run: |
483        echo "/nix/var/nix/profiles/default/bin" >> "$GITHUB_PATH"
484        echo "/Users/administrator/.nix-profile/bin" >> "$GITHUB_PATH"
485      shell: bash -euxo pipefail {0}
486    - name: nix_build::build_nix::cachix_action
487      uses: cachix/cachix-action@0fc020193b5a1fa3ac4575aa3a7d3aa6a35435ad
488      with:
489        name: zed
490        authToken: ${{ secrets.CACHIX_AUTH_TOKEN }}
491        cachixArgs: -v
492        pushFilter: -zed-editor-[0-9.]*-nightly
493    - name: nix_build::build_nix::build
494      run: nix build .#debug -L --accept-flake-config
495      shell: bash -euxo pipefail {0}
496    - name: nix_build::build_nix::limit_store
497      run: |-
498        if [ "$(du -sm /nix/store | cut -f1)" -gt 50000 ]; then
499            nix-collect-garbage -d || true
500        fi
501      shell: bash -euxo pipefail {0}
502    timeout-minutes: 60
503    continue-on-error: true
504  check_postgres_and_protobuf_migrations:
505    needs:
506    - orchestrate
507    if: needs.orchestrate.outputs.run_tests == 'true'
508    runs-on: namespace-profile-16x32-ubuntu-2204
509    env:
510      GIT_AUTHOR_NAME: Protobuf Action
511      GIT_AUTHOR_EMAIL: ci@zed.dev
512      GIT_COMMITTER_NAME: Protobuf Action
513      GIT_COMMITTER_EMAIL: ci@zed.dev
514    steps:
515    - name: steps::checkout_repo
516      uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
517      with:
518        fetch-depth: 0
519    - name: run_tests::check_postgres_and_protobuf_migrations::remove_untracked_files
520      run: git clean -df
521      shell: bash -euxo pipefail {0}
522    - name: run_tests::check_postgres_and_protobuf_migrations::ensure_fresh_merge
523      run: |
524        if [ -z "$GITHUB_BASE_REF" ];
525        then
526          echo "BUF_BASE_BRANCH=$(git merge-base origin/main HEAD)" >> "$GITHUB_ENV"
527        else
528          git checkout -B temp
529          git merge -q "origin/$GITHUB_BASE_REF" -m "merge main into temp"
530          echo "BUF_BASE_BRANCH=$GITHUB_BASE_REF" >> "$GITHUB_ENV"
531        fi
532      shell: bash -euxo pipefail {0}
533    - name: run_tests::check_postgres_and_protobuf_migrations::bufbuild_setup_action
534      uses: bufbuild/buf-setup-action@v1
535      with:
536        version: v1.29.0
537        github_token: ${{ secrets.GITHUB_TOKEN }}
538    - name: run_tests::check_postgres_and_protobuf_migrations::bufbuild_breaking_action
539      uses: bufbuild/buf-breaking-action@v1
540      with:
541        input: crates/proto/proto/
542        against: https://github.com/${GITHUB_REPOSITORY}.git#branch=${BUF_BASE_BRANCH},subdir=crates/proto/proto/
543    timeout-minutes: 60
544  tests_pass:
545    needs:
546    - orchestrate
547    - check_style
548    - run_tests_windows
549    - run_tests_linux
550    - run_tests_mac
551    - doctests
552    - check_workspace_binaries
553    - check_dependencies
554    - check_docs
555    - check_licenses
556    - check_scripts
557    - build_nix_linux_x86_64
558    - build_nix_mac_aarch64
559    if: (github.repository_owner == 'zed-industries' || github.repository_owner == 'zed-extensions') && always()
560    runs-on: namespace-profile-2x4-ubuntu-2404
561    steps:
562    - name: run_tests::tests_pass
563      run: |
564        set +x
565        EXIT_CODE=0
566
567        check_result() {
568          echo "* $1: $2"
569          if [[ "$2" != "skipped" && "$2" != "success" ]]; then EXIT_CODE=1; fi
570        }
571
572        check_result "orchestrate" "${{ needs.orchestrate.result }}"
573        check_result "check_style" "${{ needs.check_style.result }}"
574        check_result "run_tests_windows" "${{ needs.run_tests_windows.result }}"
575        check_result "run_tests_linux" "${{ needs.run_tests_linux.result }}"
576        check_result "run_tests_mac" "${{ needs.run_tests_mac.result }}"
577        check_result "doctests" "${{ needs.doctests.result }}"
578        check_result "check_workspace_binaries" "${{ needs.check_workspace_binaries.result }}"
579        check_result "check_dependencies" "${{ needs.check_dependencies.result }}"
580        check_result "check_docs" "${{ needs.check_docs.result }}"
581        check_result "check_licenses" "${{ needs.check_licenses.result }}"
582        check_result "check_scripts" "${{ needs.check_scripts.result }}"
583        check_result "build_nix_linux_x86_64" "${{ needs.build_nix_linux_x86_64.result }}"
584        check_result "build_nix_mac_aarch64" "${{ needs.build_nix_mac_aarch64.result }}"
585
586        exit $EXIT_CODE
587      shell: bash -euxo pipefail {0}
588concurrency:
589  group: ${{ github.workflow }}-${{ github.ref_name }}-${{ github.ref_name == 'main' && github.sha || 'anysha' }}
590  cancel-in-progress: true