Files
floci-cli/.github/workflows/integration.yml
Hector Ventura 030d468fd3 test: add an opt-in integration suite against the real emulator images (#44)
mvn test -Pintegration drives start, wait, status, env and stop for all four products through the CLI's own command tree, plus two AWS instances side by side, each container uniquely named on a free port and removed afterwards. Tests tagged integration are excluded from the default build. A new Integration workflow runs the suite on main, weekly and on demand.
2026-10-09 22:11:00 -05:00

39 lines
933 B
YAML

name: Integration
# Drives the CLI against the real emulator images (start, wait, status, env, stop for each product,
# and two instances side by side). It pulls four images, so it runs on main and on demand rather
# than on every pull request.
on:
push:
branches: [main]
schedule:
- cron: '0 6 * * 1'
workflow_dispatch:
permissions:
contents: read
jobs:
integration:
name: CLI against the emulator images
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
java-version: '25'
distribution: 'temurin'
cache: maven
- name: Pull emulator images
run: |
for image in floci/floci floci/floci-gcp floci/floci-az floci/floci-oci; do
docker pull "$image:latest"
done
- name: Run integration tests
run: mvn test -Pintegration -B