Repository navigation
P1: Distinguish post-commit audit delivery failure from save rollback #279
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: Example Gate | |
| on: | |
| pull_request: | |
| push: | |
| branches: [main] | |
| workflow_dispatch: | |
| jobs: | |
| examples: | |
| runs-on: ubuntu-latest | |
| env: | |
| TEAQL_S3_ENDPOINT: http://127.0.0.1:19010 | |
| TEAQL_S3_BUCKET: teaql-java-example-ci | |
| TEAQL_S3_ACCESS_KEY: teaql-java-example-ci | |
| TEAQL_S3_SECRET_KEY: teaql-java-example-ci-fixture-only | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install example verification tools | |
| run: sudo apt-get update && sudo apt-get install -y ripgrep | |
| - uses: actions/setup-java@v4 | |
| with: | |
| distribution: temurin | |
| java-version: '21' | |
| cache: maven | |
| - name: Start dedicated S3 example fixture | |
| run: | | |
| docker run -d --name teaql-java-example-s3 \ | |
| -p 127.0.0.1:19010:9000 \ | |
| -e RUSTFS_ACCESS_KEY="$TEAQL_S3_ACCESS_KEY" \ | |
| -e RUSTFS_SECRET_KEY="$TEAQL_S3_SECRET_KEY" \ | |
| -e RUSTFS_CONSOLE_ENABLE=false \ | |
| rustfs/rustfs@sha256:41fe89380f4120a337790c02af192c3fe7bb55c3edc2e6e9357b487b47c6ab21 /data | |
| for attempt in {1..30}; do | |
| if curl -sS -o /dev/null --max-time 2 "$TEAQL_S3_ENDPOINT/"; then | |
| exit 0 | |
| fi | |
| if [[ "$(docker inspect --format '{{.State.Running}}' teaql-java-example-s3)" != true ]]; then | |
| docker logs teaql-java-example-s3 | |
| exit 1 | |
| fi | |
| sleep 1 | |
| done | |
| docker logs teaql-java-example-s3 | |
| exit 1 | |
| - run: ./scripts/verify-examples.sh | |
| - name: Stop dedicated S3 example fixture | |
| if: always() | |
| run: docker rm -f teaql-java-example-s3 || true |