-
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> * Add deps installation (#5213) * Port * Missing encode pass (#5218) * Add missing encode pass * Add missing encode pass * Update .changeset/two-zebras-check.md Co-authored-by: Mikail <6186720+NyanKiyoshi@users.noreply.github.com> --------- Co-authored-by: Mikail <6186720+NyanKiyoshi@users.noreply.github.com> * Add missing encode pass --------- Co-authored-by: Wojciech Mista <wojciech.mista@hotmail.com> Co-authored-by: Mikail <6186720+NyanKiyoshi@users.noreply.github.com>
- Loading branch information
1 parent
de0987c
commit e466806
Showing
48 changed files
with
618 additions
and
79 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,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.