Skip to content

Functional Tests

Functional Tests #20

name: Functional Tests
on:
workflow_dispatch:
inputs:
docker_compose:
description: "Docker Compose File"
default: "docker-compose.yml"
type: string
required: False
umbrella_branch:
description: "Umbrella Branch (Functional Tests)"
default: "main"
type: string
required: False
worker_version:
description: "Worker Version"
default: "latest"
type: string
required: False
cli_version:
description: "CLI Version"
default: "latest"
type: string
required: False
workflow_call:
inputs:
docker_compose:
description: "Docker Compose File"
default: "docker-compose.yml"
type: string
required: False
umbrella_branch:
description: "Umbrella Branch (Functional Tests)"
default: "main"
type: string
required: False
worker_version:
description: "Worker Version"
default: "latest"
type: string
required: False
cli_version:
description: "CLI Version"
default: "latest"
type: string
required: False
jobs:
functional-das:
name: "DAS"
runs-on: ubuntu-latest
steps:
- name: Checkout RSTUF API source code
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
- name: Checkout RSTUF Umbrella (FT)
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
with:
repository: repository-service-tuf/repository-service-tuf
path: rstuf-umbrella
ref: ${{ inputs.umbrella_branch }}
- name: Deploy RSTUF with API container from source code
uses: isbang/compose-action@178aeba5c9dbeed89ffffbb3e6548ec08e9839cf
with:
compose-file: ${{ inputs.docker_compose }}
env:
WORKER_VERSION: ${{ inputs.worker_version }}
- name: Bootstrap/Setup RSTUF DAS and run Functional Tests
run: |
make ft-das CLI_VERSION=${{ inputs.cli_version }}
functional-signed:
name: "Signed"
runs-on: ubuntu-latest
steps:
- name: Checkout RSTUF API source code
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
- name: Checkout RSTUF Umbrella (FT)
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
with:
repository: repository-service-tuf/repository-service-tuf
path: rstuf-umbrella
ref: ${{ inputs.umbrella_branch }}
- name: Deploy RSTUF with API container from source code
uses: isbang/compose-action@178aeba5c9dbeed89ffffbb3e6548ec08e9839cf
with:
compose-file: ${{ inputs.docker_compose }}
env:
WORKER_VERSION: ${{ inputs.worker_version }}
- name: Bootstrap/Setup RSTUF full Signed and run Functional Tests
run: |
make ft-signed CLI_VERSION=${{ inputs.cli_version }}