Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions .github/workflows/test-rust-workspace.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,15 +85,31 @@
env:
NEXTEST_PROFILE: ${{ (github.event_name == 'merge_group' && 'merge-queue') || (github.ref == 'refs/heads/master' && 'ci-master') || 'ci' }}

check-pending-snapshots:
name: Check for pending snapshots
runs-on: ubuntu-22.04
timeout-minutes: 30

steps:
- name: Checkout
uses: actions/checkout@v5

- name: Install just
uses: taiki-e/install-action@just

- name: Check for pending snapshots
run: just check-pending-snapshots

# This is a job which depends on all test jobs and reports the overall status.
# This allows us to add/remove test jobs without having to update the required workflows.
tests-end:

Check warning

Code scanning / CodeQL

Workflow does not contain permissions Medium test

Actions job or workflow does not limit the permissions of the GITHUB_TOKEN. Consider setting an explicit permissions block, using the following as a minimal starting point: {contents: read}
name: Rust End
runs-on: ubuntu-22.04
# We want this job to always run (even if the dependant jobs fail) as we want this job to fail rather than skipping.
if: ${{ always() }}
needs:
- run-tests
- check-pending-snapshots

steps:
- name: Report overall success
Expand Down
10 changes: 10 additions & 0 deletions justfile
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,16 @@ fuzz-nightly: install-rust-tools
# In the nightly tests we want to explore uncharted territory.
NOIR_AST_FUZZER_FORCE_NON_DETERMINISTIC=1 cargo nextest run -p noir_ast_fuzzer_fuzz --no-fail-fast

# Checks if there are any pending insta.rs snapshots and errors if any exist.
check-pending-snapshots:
#!/usr/bin/env bash
snapshots=$(find . -name *.snap.new)
if [[ -n "$snapshots" ]]; then \
echo "Found pending snapshots:"
echo ""
echo $snapshots
exit 1
fi

export RUSTDOCFLAGS := "-Dwarnings -Drustdoc::unescaped_backticks"
# Generate doc.rs site for Rust code.
Expand Down
Loading