Skip to content

chore(deps): bump ubuntu from 24.04 to 26.04 #2215

chore(deps): bump ubuntu from 24.04 to 26.04

chore(deps): bump ubuntu from 24.04 to 26.04 #2215

Workflow file for this run

name: Verify
on:
push:
branches: [main]
pull_request:
branches: [main]
workflow_call:
permissions:
contents: read
pull-requests: write
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
changes:
runs-on: ubuntu-latest
outputs:
code: ${{ steps.filter.outputs.code }}
steps:
- uses: actions/checkout@v6
with:
fetch-depth: 0
- uses: dorny/paths-filter@v4
id: filter
with:
filters: |
code:
- 'src/**'
- 'tests/**'
- 'proto/**'
- 'Cargo.toml'
- 'Cargo.lock'
- 'rust-toolchain*'
- '.github/workflows/verify.yml'
- '.github/workflows/verify-impl.yml'
test:
needs: changes
if: needs.changes.outputs.code == 'true'
uses: ./.github/workflows/verify-impl.yml
secrets: inherit
verify-required:
needs: [changes, test]
if: always()
runs-on: ubuntu-latest
steps:
- name: Evaluate verify result
env:
CHANGES_RESULT: ${{ needs.changes.result }}
CODE_CHANGED: ${{ needs.changes.outputs.code }}
TEST_RESULT: ${{ needs.test.result }}
run: |
if [[ "$CHANGES_RESULT" != "success" ]]; then
echo "verify-required failing: changes job did not succeed (result: $CHANGES_RESULT)"
exit 1
fi
if [[ "$TEST_RESULT" == "success" ]]; then
echo "verify-required passing: test succeeded"
exit 0
fi
if [[ "$TEST_RESULT" == "skipped" && "$CODE_CHANGED" != "true" ]]; then
echo "verify-required passing: test intentionally skipped (no code changes)"
exit 0
fi
echo "verify-required failing (test job: $TEST_RESULT, code changed: $CODE_CHANGED)"
exit 1