mirror of
https://github.com/floci-io/floci-cli.git
synced 2026-11-23 06:00:47 -05:00
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.
39 lines
933 B
YAML
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
|