-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Login before tests (#5196) * Login before tests * Changeset * Composite actions * Composite actions * Apply in other workflows * Apply in other workflows * Don't run export tests on PRs (#5206) * Revert Don't run export tests on PRs (#5206) (#5208) This reverts commit 3ec3cf3. * Apply in other workflows * Apply in other workflows * Apply in other workflows * Apply in other workflows * Apply in other workflows * Apply in other workflows --------- Co-authored-by: Wojciech Mista <wojciech.mista@hotmail.com> * Update workflows * Update readonlyApps test to not include upcomming apps --------- Co-authored-by: Patryk Andrzejewski <vox3r69@gmail.com> Co-authored-by: Wojciech Mista <wojciech.mista@hotmail.com>
- Loading branch information
1 parent
ebc71e1
commit bcabc89
Showing
49 changed files
with
595 additions
and
113 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"saleor-dashboard": patch | ||
--- | ||
|
||
Now we login accounts before playwright jobs are being started. This means playwright shards only consume account files, skipping the authentication part, it avoids account suspending by the API due to multiple attempnts in the same time |
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,48 @@ | ||
name: Prepare accounts | ||
description: Prepare accounts that are used by Playwright | ||
inputs: | ||
BASE_URL: | ||
description: "Dashboard base url" | ||
required: true | ||
API_URL: | ||
description: "API url" | ||
required: true | ||
E2E_USER_NAME: | ||
description: "Username for e2e tests" | ||
required: true | ||
E2E_USER_PASSWORD: | ||
description: "Password for e2e tests" | ||
required: true | ||
E2E_PERMISSIONS_USERS_PASSWORD: | ||
description: "Permissions user password for e2e tests" | ||
required: true | ||
E2E_ENCODE_PASS: | ||
description: "Password for encoding credentials" | ||
required: true | ||
|
||
outputs: | ||
ACCOUNTS: | ||
description: "Encrypted accounts" | ||
value: ${{ steps.accounts.outputs.ACCOUNTS }} | ||
|
||
|
||
runs: | ||
using: "composite" | ||
steps: | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version-file: ".nvmrc" | ||
|
||
- name: Prepare accounts | ||
shell: bash | ||
id: accounts | ||
env: | ||
BASE_URL: ${{ inputs.BASE_URL }} | ||
API_URL: ${{ inputs.API_URL }} | ||
E2E_USER_NAME: ${{ inputs.E2E_USER_NAME }} | ||
E2E_USER_PASSWORD: ${{ inputs.E2E_USER_PASSWORD }} | ||
E2E_ENCODE_PASS: ${{ inputs.E2E_ENCODE_PASS }} | ||
E2E_PERMISSIONS_USERS_PASSWORD: ${{ inputs.E2E_PERMISSIONS_USERS_PASSWORD }} | ||
run: | | ||
ACCOUNTS=$(node playwright/auth.js login) | ||
echo "ACCOUNTS=${ACCOUNTS}" >> "$GITHUB_OUTPUT" |
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,32 @@ | ||
name: Restore accounts | ||
description: Restore accounts to be consumed by Playwright | ||
inputs: | ||
ACCOUNTS: | ||
description: "Accounts encrypted string" | ||
required: true | ||
E2E_ENCODE_PASS: | ||
description: "Password for encoding credentials" | ||
required: true | ||
BASE_URL: | ||
description: "Dashboard base url" | ||
required: true | ||
API_URL: | ||
description: "API url" | ||
required: true | ||
|
||
runs: | ||
using: "composite" | ||
steps: | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version-file: ".nvmrc" | ||
|
||
- name: Restore accounts | ||
shell: bash | ||
env: | ||
E2E_ENCODE_PASS: ${{ inputs.E2E_ENCODE_PASS }} | ||
ACCOUNTS: ${{ inputs.ACCOUNTS }} | ||
API_URL: ${{ inputs.API_URL }} | ||
BASE_URL: ${{ inputs.BASE_URL }} | ||
run: | | ||
node playwright/auth.js restore "$ACCOUNTS" |
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
Oops, something went wrong.