From d44b14ec36941bdbc43f42594fcbb43a20cc8b08 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Noco=C5=84?= Date: Fri, 21 Jul 2023 09:07:09 +0200 Subject: [PATCH] Simplified triggering tests for a release (#6) --- .github/workflows/browser-tests-v3.yaml | 125 ------------------------ .github/workflows/browser-tests-v4.yaml | 124 ----------------------- .github/workflows/browser-tests.yaml | 22 +++++ 3 files changed, 22 insertions(+), 249 deletions(-) delete mode 100644 .github/workflows/browser-tests-v3.yaml delete mode 100644 .github/workflows/browser-tests-v4.yaml create mode 100644 .github/workflows/browser-tests.yaml diff --git a/.github/workflows/browser-tests-v3.yaml b/.github/workflows/browser-tests-v3.yaml deleted file mode 100644 index dd087d2..0000000 --- a/.github/workflows/browser-tests-v3.yaml +++ /dev/null @@ -1,125 +0,0 @@ -name: Browser tests - -on: - push: - tags: - - 'v3*' - -jobs: - regression-experience-setup1: - name: "PHP 7.4/PostgreSQL/Varnish/Redis/Multirepository" - uses: ibexa/gh-workflows/.github/workflows/browser-tests.yml@main - with: - project-edition: "experience" - project-version: ${{ github.ref_name }} - test-suite: "--profile=regression --suite=experience" - test-setup-phase-1: "--profile=regression --suite=setup-experience --tags=~@part2 --mode=standard" - test-setup-phase-2: "--profile=regression --suite=setup-experience --tags=@part2 --mode=standard" - setup: "doc/docker/base-dev.yml:doc/docker/db-postgresql.yml:doc/docker/varnish.yml:doc/docker/redis.yml:doc/docker/selenium.yml" - send-success-notification: ${{ github.event.inputs.send-success-notification != 'false' }} - job-count: 3 - multirepository: true - timeout: 120 - secrets: - SATIS_NETWORK_KEY: ${{ secrets.SATIS_NETWORK_KEY }} - SATIS_NETWORK_TOKEN: ${{ secrets.SATIS_NETWORK_TOKEN }} - TRAVIS_GITHUB_TOKEN: ${{ secrets.TRAVIS_GITHUB_TOKEN }} - SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} - regression-experience-setup2: - name: "PHP 7.3/MySQL/Multirepository" - uses: ibexa/gh-workflows/.github/workflows/browser-tests.yml@main - with: - project-edition: "experience" - project-version: ${{ github.ref_name }} - test-suite: "--profile=regression --suite=experience" - test-setup-phase-1: "--profile=regression --suite=setup-experience --tags=~@part2 --mode=standard" - test-setup-phase-2: "--profile=regression --suite=setup-experience --tags=@part2 --mode=standard" - setup: "doc/docker/base-dev.yml:doc/docker/selenium.yml" - send-success-notification: ${{ github.event.inputs.send-success-notification != 'false' }} - job-count: 3 - multirepository: true - php-image: "ezsystems/php:7.3-v2-node14" - timeout: 120 - secrets: - SATIS_NETWORK_KEY: ${{ secrets.SATIS_NETWORK_KEY }} - SATIS_NETWORK_TOKEN: ${{ secrets.SATIS_NETWORK_TOKEN }} - TRAVIS_GITHUB_TOKEN: ${{ secrets.TRAVIS_GITHUB_TOKEN }} - SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} - regression-experience-setup3: - name: "PHP 8.1/MySQL/Multirepository" - uses: ibexa/gh-workflows/.github/workflows/browser-tests.yml@main - with: - project-edition: "experience" - project-version: ${{ github.ref_name }} - test-suite: "--profile=regression --suite=experience" - test-setup-phase-1: "--profile=regression --suite=setup-experience --tags=~@part2 --mode=standard" - test-setup-phase-2: "--profile=regression --suite=setup-experience --tags=@part2 --mode=standard" - setup: "doc/docker/base-dev.yml:doc/docker/selenium.yml" - send-success-notification: ${{ github.event.inputs.send-success-notification != 'false' }} - job-count: 3 - multirepository: true - php-image: "ezsystems/php:8.1-v2-node16" - timeout: 120 - secrets: - SATIS_NETWORK_KEY: ${{ secrets.SATIS_NETWORK_KEY }} - SATIS_NETWORK_TOKEN: ${{ secrets.SATIS_NETWORK_TOKEN }} - TRAVIS_GITHUB_TOKEN: ${{ secrets.TRAVIS_GITHUB_TOKEN }} - SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} - page-builder-matchers-1: - name: "Map\\Host matcher tests" - uses: ibexa/gh-workflows/.github/workflows/browser-tests.yml@main - with: - project-edition: "experience" - project-version: ${{ github.ref_name }} - test-suite: "--profile=browser --suite=page-builder" - test-setup-phase-1: "--mode=standard --profile=setup --suite=MapHost" - setup: "doc/docker/base-dev.yml:doc/docker/multihost.yml:doc/docker/selenium.yml" - send-success-notification: ${{ github.event.inputs.send-success-notification != 'false' }} - secrets: - SATIS_NETWORK_KEY: ${{ secrets.SATIS_NETWORK_KEY }} - SATIS_NETWORK_TOKEN: ${{ secrets.SATIS_NETWORK_TOKEN }} - TRAVIS_GITHUB_TOKEN: ${{ secrets.TRAVIS_GITHUB_TOKEN }} - SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} - page-builder-matchers-2: - name: "Map\\URI matcher tests" - uses: ibexa/gh-workflows/.github/workflows/browser-tests.yml@main - with: - project-edition: "experience" - project-version: ${{ github.ref_name }} - test-suite: "--profile=browser --suite=page-builder" - test-setup-phase-1: "--mode=standard --profile=setup --suite=MapURI" - send-success-notification: ${{ github.event.inputs.send-success-notification != 'false' }} - secrets: - SATIS_NETWORK_KEY: ${{ secrets.SATIS_NETWORK_KEY }} - SATIS_NETWORK_TOKEN: ${{ secrets.SATIS_NETWORK_TOKEN }} - TRAVIS_GITHUB_TOKEN: ${{ secrets.TRAVIS_GITHUB_TOKEN }} - SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} - page-builder-matchers-3: - name: "URIElement matcher tests" - uses: ibexa/gh-workflows/.github/workflows/browser-tests.yml@main - with: - project-edition: "experience" - project-version: ${{ github.ref_name }} - test-suite: "--profile=browser --suite=page-builder" - test-setup-phase-1: "--mode=standard --profile=setup --suite=URIElement" - send-success-notification: ${{ github.event.inputs.send-success-notification != 'false' }} - secrets: - SATIS_NETWORK_KEY: ${{ secrets.SATIS_NETWORK_KEY }} - SATIS_NETWORK_TOKEN: ${{ secrets.SATIS_NETWORK_TOKEN }} - TRAVIS_GITHUB_TOKEN: ${{ secrets.TRAVIS_GITHUB_TOKEN }} - SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} - page-builder-matchers-4: - name: "Compound matcher tests" - uses: ibexa/gh-workflows/.github/workflows/browser-tests.yml@main - with: - project-edition: "experience" - project-version: ${{ github.ref_name }} - test-suite: "--profile=browser --suite=page-builder" - test-setup-phase-1: "--mode=standard --profile=setup --suite=CompoundMapURIMapHost" - setup: "doc/docker/base-dev.yml:doc/docker/multihost.yml:doc/docker/selenium.yml" - send-success-notification: ${{ github.event.inputs.send-success-notification != 'false' }} - secrets: - SATIS_NETWORK_KEY: ${{ secrets.SATIS_NETWORK_KEY }} - SATIS_NETWORK_TOKEN: ${{ secrets.SATIS_NETWORK_TOKEN }} - TRAVIS_GITHUB_TOKEN: ${{ secrets.TRAVIS_GITHUB_TOKEN }} - SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} diff --git a/.github/workflows/browser-tests-v4.yaml b/.github/workflows/browser-tests-v4.yaml deleted file mode 100644 index 9f46113..0000000 --- a/.github/workflows/browser-tests-v4.yaml +++ /dev/null @@ -1,124 +0,0 @@ -name: Browser tests - -on: - push: - tags: - - 'v4*' - -jobs: - regression-experience-setup1: - name: "PHP 7.4/Node 14/PostgreSQL/Varnish/Redis/Multirepository" - uses: ibexa/gh-workflows/.github/workflows/browser-tests.yml@main - with: - project-edition: "experience" - project-version: ${{ github.ref_name }} - test-suite: "--profile=regression --suite=experience" - test-setup-phase-1: "--profile=regression --suite=setup-experience --tags=~@part2 --mode=standard" - test-setup-phase-2: "--profile=regression --suite=setup-experience --tags=@part2 --mode=standard" - setup: "doc/docker/base-dev.yml:doc/docker/db-postgresql.yml:doc/docker/varnish.yml:doc/docker/redis.yml:doc/docker/selenium.yml" - send-success-notification: ${{ github.event.inputs.send-success-notification != 'false' }} - job-count: 3 - multirepository: true - timeout: 120 - php-image: "ezsystems/php:7.4-v2-node14" - secrets: - SATIS_NETWORK_KEY: ${{ secrets.SATIS_NETWORK_KEY }} - SATIS_NETWORK_TOKEN: ${{ secrets.SATIS_NETWORK_TOKEN }} - TRAVIS_GITHUB_TOKEN: ${{ secrets.TRAVIS_GITHUB_TOKEN }} - SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} - AUTOMATION_CLIENT_ID: ${{ secrets.AUTOMATION_CLIENT_ID }} - AUTOMATION_CLIENT_INSTALLATION: ${{ secrets.AUTOMATION_CLIENT_INSTALLATION }} - AUTOMATION_CLIENT_SECRET: ${{ secrets.AUTOMATION_CLIENT_SECRET }} - regression-experience-setup2: - name: "PHP 8.1/Node 16/MySQL/Compatibility layer" - uses: ibexa/gh-workflows/.github/workflows/browser-tests.yml@main - with: - project-edition: "experience" - project-version: ${{ github.ref_name }} - test-suite: "--profile=regression --suite=experience" - test-setup-phase-1: "--profile=regression --suite=setup-experience --tags=~@part2 --mode=standard" - test-setup-phase-2: "--profile=regression --suite=setup-experience --tags=@part2 --mode=standard" - setup: "doc/docker/base-dev.yml:doc/docker/selenium.yml" - send-success-notification: ${{ github.event.inputs.send-success-notification != 'false' }} - use-compatibility-layer: true - job-count: 3 - timeout: 120 - php-image: "ezsystems/php:8.1-v2-node16" - secrets: - SATIS_NETWORK_KEY: ${{ secrets.SATIS_NETWORK_KEY }} - SATIS_NETWORK_TOKEN: ${{ secrets.SATIS_NETWORK_TOKEN }} - TRAVIS_GITHUB_TOKEN: ${{ secrets.TRAVIS_GITHUB_TOKEN }} - SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} - AUTOMATION_CLIENT_ID: ${{ secrets.AUTOMATION_CLIENT_ID }} - AUTOMATION_CLIENT_INSTALLATION: ${{ secrets.AUTOMATION_CLIENT_INSTALLATION }} - AUTOMATION_CLIENT_SECRET: ${{ secrets.AUTOMATION_CLIENT_SECRET }} - page-builder-matchers-1: - name: "Map\\Host matcher tests" - uses: ibexa/gh-workflows/.github/workflows/browser-tests.yml@main - with: - project-edition: "experience" - project-version: ${{ github.ref_name }} - test-suite: "--profile=browser --suite=page-builder" - test-setup-phase-1: "--mode=standard --profile=setup --suite=MapHost" - setup: "doc/docker/base-dev.yml:doc/docker/multihost.yml:doc/docker/selenium.yml" - send-success-notification: ${{ github.event.inputs.send-success-notification != 'false' }} - secrets: - SATIS_NETWORK_KEY: ${{ secrets.SATIS_NETWORK_KEY }} - SATIS_NETWORK_TOKEN: ${{ secrets.SATIS_NETWORK_TOKEN }} - TRAVIS_GITHUB_TOKEN: ${{ secrets.TRAVIS_GITHUB_TOKEN }} - SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} - AUTOMATION_CLIENT_ID: ${{ secrets.AUTOMATION_CLIENT_ID }} - AUTOMATION_CLIENT_INSTALLATION: ${{ secrets.AUTOMATION_CLIENT_INSTALLATION }} - AUTOMATION_CLIENT_SECRET: ${{ secrets.AUTOMATION_CLIENT_SECRET }} - page-builder-matchers-2: - name: "Map\\URI matcher tests" - uses: ibexa/gh-workflows/.github/workflows/browser-tests.yml@main - with: - project-edition: "experience" - project-version: ${{ github.ref_name }} - test-suite: "--profile=browser --suite=page-builder" - test-setup-phase-1: "--mode=standard --profile=setup --suite=MapURI" - send-success-notification: ${{ github.event.inputs.send-success-notification != 'false' }} - secrets: - SATIS_NETWORK_KEY: ${{ secrets.SATIS_NETWORK_KEY }} - SATIS_NETWORK_TOKEN: ${{ secrets.SATIS_NETWORK_TOKEN }} - TRAVIS_GITHUB_TOKEN: ${{ secrets.TRAVIS_GITHUB_TOKEN }} - SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} - AUTOMATION_CLIENT_ID: ${{ secrets.AUTOMATION_CLIENT_ID }} - AUTOMATION_CLIENT_INSTALLATION: ${{ secrets.AUTOMATION_CLIENT_INSTALLATION }} - AUTOMATION_CLIENT_SECRET: ${{ secrets.AUTOMATION_CLIENT_SECRET }} - page-builder-matchers-3: - name: "URIElement matcher tests" - uses: ibexa/gh-workflows/.github/workflows/browser-tests.yml@main - with: - project-edition: "experience" - project-version: ${{ github.ref_name }} - test-suite: "--profile=browser --suite=page-builder" - test-setup-phase-1: "--mode=standard --profile=setup --suite=URIElement" - send-success-notification: ${{ github.event.inputs.send-success-notification != 'false' }} - secrets: - SATIS_NETWORK_KEY: ${{ secrets.SATIS_NETWORK_KEY }} - SATIS_NETWORK_TOKEN: ${{ secrets.SATIS_NETWORK_TOKEN }} - TRAVIS_GITHUB_TOKEN: ${{ secrets.TRAVIS_GITHUB_TOKEN }} - SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} - AUTOMATION_CLIENT_ID: ${{ secrets.AUTOMATION_CLIENT_ID }} - AUTOMATION_CLIENT_INSTALLATION: ${{ secrets.AUTOMATION_CLIENT_INSTALLATION }} - AUTOMATION_CLIENT_SECRET: ${{ secrets.AUTOMATION_CLIENT_SECRET }} - page-builder-matchers-4: - name: "Compound matcher tests" - uses: ibexa/gh-workflows/.github/workflows/browser-tests.yml@main - with: - project-edition: "experience" - project-version: ${{ github.ref_name }} - test-suite: "--profile=browser --suite=page-builder" - test-setup-phase-1: "--mode=standard --profile=setup --suite=CompoundMapURIMapHost" - setup: "doc/docker/base-dev.yml:doc/docker/multihost.yml:doc/docker/selenium.yml" - send-success-notification: ${{ github.event.inputs.send-success-notification != 'false' }} - secrets: - SATIS_NETWORK_KEY: ${{ secrets.SATIS_NETWORK_KEY }} - SATIS_NETWORK_TOKEN: ${{ secrets.SATIS_NETWORK_TOKEN }} - TRAVIS_GITHUB_TOKEN: ${{ secrets.TRAVIS_GITHUB_TOKEN }} - SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} - AUTOMATION_CLIENT_ID: ${{ secrets.AUTOMATION_CLIENT_ID }} - AUTOMATION_CLIENT_INSTALLATION: ${{ secrets.AUTOMATION_CLIENT_INSTALLATION }} - AUTOMATION_CLIENT_SECRET: ${{ secrets.AUTOMATION_CLIENT_SECRET }} diff --git a/.github/workflows/browser-tests.yaml b/.github/workflows/browser-tests.yaml new file mode 100644 index 0000000..1a7993a --- /dev/null +++ b/.github/workflows/browser-tests.yaml @@ -0,0 +1,22 @@ +name: Browser tests + +on: + push: + tags: + - 'v*' + +jobs: + trigger-browser-tests: + name: Browser tests + runs-on: ubuntu-latest + steps: + - uses: octokit/request-action@v2.x + name: Trigger browser tests + with: + repository: ibexa/experience + workflow: "browser-tests.yml" + ref: ${{ github.ref_name }} + route: POST /repos/{repository}/actions/workflows/{workflow}/dispatches + inputs: '{ "send-success-notification": "true", "project-version": "${{ github.ref_name }}" }' + env: + GITHUB_TOKEN: ${{ secrets.TRAVIS_GITHUB_TOKEN }}