-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #70 from lilt/4.x-development
Release 4.2.0
- Loading branch information
Showing
159 changed files
with
21,576 additions
and
1,190 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
name: E2E Tests | ||
on: | ||
push: | ||
branches: | ||
- 4.x #CraftCMS v4 | ||
pull_request: | ||
branches: | ||
- "*" | ||
jobs: | ||
tests: | ||
strategy: | ||
matrix: | ||
os: [ ubuntu-latest ] | ||
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-latest | ||
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 |
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
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
CYPRESS_APP_URL= | ||
CYPRESS_API_URL= | ||
CYPRESS_API_KEY= | ||
CYPRESS_MOCKSERVER_HOST= | ||
CYPRESS_MOCKSERVER_PORT= | ||
CYPRESS_USER_NAME= | ||
CYPRESS_USER_PASSWORD= |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
CYPRESS_APP_URL=http://app:8080 | ||
CYPRESS_API_URL=http://mockserver:1080 | ||
CYPRESS_API_KEY=this_is_apy_key | ||
CYPRESS_MOCKSERVER_HOST=mockserver | ||
CYPRESS_MOCKSERVER_PORT=1080 | ||
CYPRESS_MOCKSERVER_ENABLED=true | ||
CYPRESS_USER_NAME=admin | ||
CYPRESS_USER_PASSWORD=password |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
node_modules | ||
cypress/videos | ||
.idea | ||
*.env.json | ||
happy-lager-main/ | ||
!happy-lager-override/composer.lock | ||
*.override.yml |
Oops, something went wrong.