Skip to content

Conversation

Firestar99
Copy link
Member

@Firestar99 Firestar99 commented Oct 12, 2025

In abc684e I've made lint fail, but as you can see in the action, test_success succeeded, which would allow a PR to merge. This PR adds lint and cargo-deny to the required tests to succeed.

@Firestar99 Firestar99 changed the title ci: test success for lint and cargo-deny ci: check test success for lint and cargo-deny Oct 12, 2025
@Firestar99 Firestar99 marked this pull request as ready for review October 12, 2025 13:06
@LegNeato LegNeato added this pull request to the merge queue Oct 12, 2025
Merged via the queue into main with commit 3b1ad48 Oct 12, 2025
13 checks passed
@LegNeato LegNeato deleted the ci-test-success branch October 12, 2025 18:30
Comment on lines 207 to 219
needs: [test, compiletest, difftest, android]
needs: [test, compiletest, difftest, android, lint, cargo-deny]
# Hack for buggy GitHub Actions behavior with skipped checks: https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/collaborating-on-repositories-with-code-quality-features/troubleshooting-required-status-checks#handling-skipped-but-required-checks
if: ${{ always() }}
steps:
# Another hack is to actually check the status of the dependencies or else it'll fall through
- run: |
echo "Checking statuses..."
[[ "${{ needs.test.result }}" == "success" ]] || exit 1
[[ "${{ needs.compiletest.result }}" == "success" ]] || exit 1
[[ "${{ needs.difftest.result }}" == "success" ]] || exit 1
[[ "${{ needs.android.result }}" == "success" ]] || exit 1
[[ "${{ needs.lint.result }}" == "success" ]] || exit 1
[[ "${{ needs.cargo-deny.result }}" == "success" ]] || exit 1
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I still can't believe GitHub Actions doesn't have a better way to do this (arguably quite basic?) "require all tests to pass" pattern.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants