Skip to content

Commit

Permalink
tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
jakedoublev committed Sep 6, 2024
1 parent 8bb8353 commit 7137b74
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions e2e/action.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
name: 'end-to-end'
description: 'Run end-to-end tests for the otdfctl CLI'
inputs:
# Known issue: boolean defaults are treated as strings [https://stackoverflow.com/questions/76292948/github-action-boolean-input-with-default-value]
platform-is-running:
required: false
description: 'If false, spin up the platform and its resources'
default: 'false'
type: boolean
platform-ref:
required: false
description: 'The ref to check out for the platform'
Expand Down Expand Up @@ -46,15 +47,15 @@ runs:
ref: ${{ inputs.otdfctl-ref }}
# Spin up the platform IFF it's not already running in the current workflow context
- name: Check out platform
if: ${{ inputs.platform-is-running == 'false' }}
if: ${{ ! inputs.platform-is-running }}
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332
with:
repository: opentdf/platform
path: platform
ref: ${{ inputs.platform-ref }}
- name: Set up go (platform's go version)
id: setup-go
if: ${{ inputs.platform-is-running == 'false' }}
if: ${{ ! inputs.platform-is-running }}
uses: actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7
with:
go-version-file: 'platform/service/go.mod'
Expand All @@ -65,13 +66,13 @@ runs:
platform/sdk/go.sum
- name: Provide the platform with keys
shell: bash
if: ${{ inputs.platform-is-running == 'false' }}
if: ${{ ! inputs.platform-is-running }}
run: |
.github/scripts/init-temp-keys.sh
cp opentdf-dev.yaml opentdf.yaml
working-directory: platform
- name: Trust the generated certs
if: ${{ inputs.platform-is-running == 'false' }}
if: ${{ ! inputs.platform-is-running }}
shell: bash
run: |
sudo chmod -R 777 ./keys
Expand All @@ -80,22 +81,22 @@ runs:
sudo update-ca-certificates
working-directory: platform
- name: Spin up platform's containerized resources
if: ${{ inputs.platform-is-running == 'false' }}
if: ${{ ! inputs.platform-is-running }}
shell: bash
run: docker compose up -d --wait --wait-timeout 240
working-directory: platform
- name: Provision realms/clients/users into idP
if: ${{ inputs.platform-is-running == 'false' }}
if: ${{ ! inputs.platform-is-running }}
shell: bash
run: go run ./service provision keycloak
working-directory: platform
- name: Provision test fixture policy
if: ${{ inputs.platform-is-running == 'false' }}
if: ${{ ! inputs.platform-is-running }}
shell: bash
run: go run ./service provision fixtures
working-directory: platform
- name: Start platform server in background
if: ${{ inputs.platform-is-running == 'false' }}
if: ${{ ! inputs.platform-is-running }}
uses: JarvusInnovations/background-action@2428e7b970a846423095c79d43f759abf979a635
with:
run: >
Expand Down

0 comments on commit 7137b74

Please sign in to comment.