Skip to content

Fix translation link #347

Fix translation link

Fix translation link #347

Workflow file for this run

name: E2E Tests
on:
push:
branches:
- 4.x #CraftCMS v4
pull_request:
branches:
- "*"
jobs:
tests:
strategy:
fail-fast: false
matrix:
os: [ ubuntu-20.04 ]
scenario: [
"cypress/e2e/jobs/copy-source-text-flow/filters.cy.js",
"cypress/e2e/jobs/copy-source-text-flow/success-path-multiple.cy.js",
"cypress/e2e/jobs/copy-source-text-flow/success-path-single.cy.js",
"cypress/e2e/jobs/instant/success-path-multiple.cy.js",
"cypress/e2e/jobs/instant/success-path-multiple-copy-slug.cy.js",
"cypress/e2e/jobs/instant/success-path-multiple-copy-slug-and-enable-after-publish.cy.js",
"cypress/e2e/jobs/instant/success-path-multiple-enable-after-publish.cy.js",
"cypress/e2e/jobs/verified/success-path-multiple-bulk-publishing.cy.js",
"cypress/e2e/jobs/verified/success-path-multiple-bulk-publishing-copy-slug.cy.js",
"cypress/e2e/jobs/verified/success-path-multiple-bulk-publishing-copy-slug-and-enable-after-publish.cy.js",
"cypress/e2e/jobs/verified/success-path-multiple-bulk-publishing-enable-after-publish.cy.js",
"cypress/e2e/jobs/verified/success-path-multiple-single-publishing.cy.js",
"cypress/e2e/jobs/verified/success-path-multiple-single-publishing-copy-slug.cy.js",
"cypress/e2e/jobs/verified/success-path-multiple-single-publishing-copy-slug-and-enable-after-publish.cy.js",
"cypress/e2e/jobs/verified/success-path-multiple-single-publishing-enable-after-publish.cy.js",
"cypress/e2e/jobs/verified/success-path-single.cy.js",
"cypress/e2e/jobs/instant/success-path-single.cy.js",
]
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- name: Set the value
id: step_one
run: |
echo "CYPRESS_SCENARIO=${{ matrix.scenario }}" >> $GITHUB_ENV
echo "DB_DATABASE=$(uuidgen)" >> $GITHUB_ENV
- name: Run automation
working-directory: ./e2e
run: |
echo ${DB_DATABASE}
make up
make e2e-github
- name: Copy artifacts
if: ${{ failure() }}
working-directory: ./e2e
run: |
make backup-db
mkdir var
mkdir var/log
mkdir cypress/craft
mkdir cypress/craft/storage
mkdir cypress/craft/config
docker compose cp app:/app/storage cypress/craft/storage
docker compose cp app:/app/config cypress/craft/config
docker compose cp app:/app/composer.json cypress/craft
docker compose cp app:/app/composer.lock cypress/craft
docker compose cp app:/var/log var/log
- name: Use the Upload Artifact GitHub Action
uses: actions/upload-artifact@v2
if: ${{ failure() }}
with:
name: "${{ github.job }}_${{ github.run_id }}_${{ github.workflow }}_e2e_artifacts"
path: |
./e2e/cypress/craft
./e2e/cypress/screenshots
./e2e/cypress/videos
./e2e/happy-lager-main/storage