Run Pimcore Integration Tests #414
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Run Pimcore Integration Tests | |
on: | |
workflow_dispatch: | |
inputs: | |
test_branch: | |
description: 'Used branch of k6 tests' | |
required: false | |
type: string | |
schedule: | |
- cron: '0 3 * * 1,3,5' | |
jobs: | |
run-integration-test: | |
runs-on: Platform-Version-Integration-Tests | |
steps: | |
- name: "Checkout platform version" | |
uses: actions/checkout@v4 | |
with: | |
path: './platform-version' | |
- name: "Checkout K6 Tests" | |
uses: actions/checkout@v4 | |
with: | |
repository: "pimcore/saas-k6" | |
ref: ${{ inputs.test_branch || github.ref_name }} | |
path: "./platform-version-working-dir/saas-k6" | |
token: ${{ secrets.PERSONAL_ACCESS_TOKEN }} | |
- name: Setup environment | |
working-directory: "./platform-version-working-dir" | |
run: | | |
chmod 755 ../platform-version/.github/scripts/01-setup-environment.sh | |
../platform-version/.github/scripts/01-setup-environment.sh ${{ secrets.ENTERPRISE_REPOSITORY_TOKEN }} | |
- name: Install Pimcore | |
working-directory: "./platform-version-working-dir/test-project" | |
run: | | |
chmod 755 ../../platform-version/.github/scripts/02-install-pimcore.sh | |
../../platform-version/.github/scripts/02-install-pimcore.sh | |
- name: Run Tests | |
working-directory: "./platform-version-working-dir" | |
run: | | |
chmod 755 ../platform-version/.github/scripts/03-run-tests.sh | |
../platform-version/.github/scripts/03-run-tests.sh | |
- name: Shutdown | |
if: always() | |
working-directory: "./platform-version-working-dir/test-project" | |
run: | | |
chmod 755 ../../platform-version/.github/scripts/04-shutdown.sh | |
../../platform-version/.github/scripts/04-shutdown.sh |