Skip to content

Create all entities in Seqera Platform from end-to-end with seqerakit #198

Create all entities in Seqera Platform from end-to-end with seqerakit

Create all entities in Seqera Platform from end-to-end with seqerakit #198

Workflow file for this run

name: e2e-testing
run-name: Create all entities in Seqera Platform from end-to-end with seqerakit
# This workflow can be triggered manually with GitHub actions workflow dispatch button.
# It will automate the end-to-end creation all of the following entities in Seqera Platform.
on:
push:
branches: [main]
pull_request:
branches: [main]
workflow_dispatch:
inputs:
pre_delete:
description: 'Delete all entities in the yaml before testing'
required: false
type: boolean
default: false
clearup:
description: 'Clearup all entities in yaml after testing'
required: false
type: boolean
default: true
jobs:
e2e-testing:
name: E2E Testing
if: github.repository == 'seqeralabs/seqerakit'
runs-on: ubuntu-latest
env:
TOWER_API_ENDPOINT: ${{ vars.TOWER_API_ENDPOINT }}
TOWER_ACCESS_TOKEN: ${{ secrets.TOWER_ACCESS_TOKEN }}
TOWER_GITHUB_PASSWORD: ${{ secrets.TOWER_GITHUB_PASSWORD }}
DOCKERHUB_PASSWORD: ${{ secrets.DOCKERHUB_PASSWORD }}
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
AWS_ASSUME_ROLE_ARN: ${{ secrets.AWS_ASSUME_ROLE_ARN }}
AZURE_BATCH_KEY: ${{ secrets.AZURE_BATCH_KEY }}
AZURE_STORAGE_KEY: ${{ secrets.AZURE_STORAGE_KEY }}
GOOGLE_KEY: ${{ secrets.GOOGLE_KEY }}
SENTIEON_LICENSE_BASE64: ${{ secrets.SENTIEON_LICENSE_BASE64 }}
AWS_REGION: ${{ secrets.AWS_REGION }}
AWS_WORK_DIR: ${{ secrets.AWS_WORK_DIR }}
AWS_COMPUTE_ENV_NAME: ${{ secrets.AWS_COMPUTE_ENV_NAME }}
steps:
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
with:
ref: ${{ github.head_ref || github.ref }}
- uses: astral-sh/setup-uv@38f3f104447c67c051c4a08e39b64a148898af3a # v4
with:
enable-cache: true
cache-dependency-glob: 'uv.lock'
- name: Install Tower CLI
run: |
wget https://github.com/seqeralabs/tower-cli/releases/download/v0.14.0/tw-linux-x86_64 \
&& chmod +x tw-linux-x86_64 \
&& sudo mv tw-linux-x86_64 /usr/local/bin/tw
- name: pre-clear
# Note this task always 'succeeds'
if: ( success() || failure() ) && ( github.event_name != 'workflow_dispatch' || inputs.pre_delete )
run: |
temp_file=$(mktemp -q)
echo $GOOGLE_KEY | base64 -d > $temp_file
export GOOGLE_KEY=$temp_file
uv run seqerakit examples/yaml/e2e/*.yml --delete || true
- name: dryrun
run: |
temp_file=$(mktemp -q)
echo $GOOGLE_KEY | base64 -d > $temp_file
export GOOGLE_KEY=$temp_file
uv run seqerakit examples/yaml/e2e/*.yml --dryrun
- name: create
run: |
temp_file=$(mktemp -q)
echo $GOOGLE_KEY | base64 -d > $temp_file
export GOOGLE_KEY=$temp_file
uv run seqerakit examples/yaml/e2e/*.yml
- name: teardown
if: ( success() || failure() ) && ( github.event_name != 'workflow_dispatch' || inputs.clearup )
run: |
temp_file=$(mktemp -q)
echo $GOOGLE_KEY | base64 -d > $temp_file
export GOOGLE_KEY=$temp_file
uv run seqerakit examples/yaml/e2e/*.yml --delete