mirror of
https://github.com/floci-io/floci-cli.git
synced 2026-11-22 21:50:47 -05:00
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.
This commit is contained in:
1 parent
a813a23785
commit
030d468fd3
4 files changed
+193
No files matched your search
@@ -0,0 +1,38 @@
|
||||
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
|
||||
Reference in new issue
Block a user