Fix the rev_list read, increment index and update transaction #1790
Workflow file for this run
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: Scenario Integration Tests | |
| on: | |
| schedule: | |
| - cron: '0 0 * * *' | |
| workflow_dispatch: | |
| pull_request: | |
| branches: | |
| - main | |
| types: [opened, synchronize, reopened, ready_for_review] | |
| permissions: | |
| contents: read | |
| pull-requests: read | |
| checks: write | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| defaults: | |
| run: | |
| shell: bash | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| # Run on openwallet-foundation and non-draft PRs or on non-PR events | |
| if: (github.repository == 'openwallet-foundation/acapy') && ((github.event_name == 'pull_request' && github.event.pull_request.draft == false) || (github.event_name != 'pull_request')) | |
| steps: | |
| - name: checkout-acapy | |
| uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
| with: | |
| fetch-depth: 0 | |
| - name: Check changed files | |
| id: check-changed-files | |
| uses: tj-actions/changed-files@ed68ef82c095e0d48ec87eccea555d944a631a4c # v46.0.5 | |
| with: | |
| files_yaml: | | |
| scenarios: "scenarios/**/*" | |
| src: | |
| - acapy_agent/**/* | |
| - poetry.lock | |
| - pyproject.toml | |
| - name: Check if scenarios or src files changed | |
| id: check-if-scenarios-or-src-changed | |
| run: | | |
| if [ "${{ steps.check-changed-files.outputs.scenarios_any_changed }}" != "true" ] && [ "${{ steps.check-changed-files.outputs.src_any_changed }}" != "true" ] && [ '${{ github.event_name }}' == 'pull_request' ]; then | |
| echo "No scenarios or src files changed..." | |
| echo run_tests=false >> $GITHUB_OUTPUT | |
| fi | |
| - name: Install poetry | |
| if: steps.check-if-scenarios-or-src-changed.outputs.run_tests != 'false' | |
| run: pipx install poetry | |
| id: setup-poetry | |
| - uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0 | |
| if: steps.check-if-scenarios-or-src-changed.outputs.run_tests != 'false' | |
| with: | |
| python-version: "3.12" | |
| cache: "poetry" | |
| - name: Run Scenario Tests | |
| if: steps.check-if-scenarios-or-src-changed.outputs.run_tests != 'false' | |
| run: | | |
| set -euo pipefail | |
| docker build -t acapy-test -f docker/Dockerfile.run . | |
| for compose_file in $(find scenarios -name 'docker-compose.yml'); do | |
| echo "Running tests for: $compose_file" | |
| if ! docker compose -f "$compose_file" up --build --abort-on-container-exit --exit-code-from example; then | |
| echo "❌ Tests failed for $compose_file. Dumping logs:" | |
| docker compose -f "$compose_file" logs | |
| docker compose -f "$compose_file" down -v --remove-orphans | |
| exit 1 | |
| fi | |
| docker compose -f "$compose_file" down -v --remove-orphans | |
| done |