-
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 #287 from AppQuality/develop
Update url, add playwright, refactor user handling
- Loading branch information
Showing
454 changed files
with
7,251 additions
and
6,345 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,9 @@ | ||
REACT_APP_GTM_ID= | ||
|
||
REACT_APP_API_URL=https://dev.tryber.me/api | ||
|
||
REACT_APP_DEFAULT_TOKEN= | ||
|
||
REACT_APP_CROWD_WP_URL=https://dev.tryber.me | ||
|
||
REACT_APP_DATADOG_CLIENT_TOKEN= |
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 |
---|---|---|
@@ -1,30 +1,61 @@ | ||
name: Run Tests | ||
name: Run E2E Tests | ||
on: | ||
push: | ||
branches: [main, master] | ||
pull_request: | ||
workflow_dispatch: | ||
pull_request: | ||
types: | ||
- opened | ||
- synchronize | ||
- reopened | ||
- ready_for_review | ||
push: | ||
branches: [main, master, develop] | ||
|
||
jobs: | ||
test: | ||
timeout-minutes: 60 | ||
runs-on: ubuntu-latest | ||
basicTests: | ||
if: ${{ (github.event.pull_request.draft == false) || (github.event_name == 'push' ) || github.event_name == 'workflow_dispatch' }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
# run 3 copies of the job in parallel | ||
shard: [1, 2, 3] | ||
|
||
name: "Playwright Tests - pwc" | ||
timeout-minutes: 20 | ||
runs-on: ubuntu-22.04 | ||
container: mcr.microsoft.com/playwright:v1.39.0-jammy | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
ref: ${{ github.event.pull_request.head.sha }} | ||
|
||
# https://github.com/actions/runner-images/issues/6775 | ||
- run: | | ||
echo "$GITHUB_WORKSPACE" | ||
git config --global --add safe.directory "$GITHUB_WORKSPACE" | ||
- name: Extract hash commit | ||
shell: bash | ||
run: | | ||
COMMIT=$(git rev-parse --short HEAD) | ||
echo "##[set-output name=commit;]$COMMIT" | ||
id: extract_commit | ||
|
||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: 18 | ||
node-version: "18.x" | ||
|
||
- name: Install dependencies | ||
run: | | ||
echo //registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }} > .npmrc | ||
npm install -g yarn && yarn | ||
- name: Install Playwright Browsers | ||
run: yarn playwright install --with-deps | ||
- name: Run Playwright tests | ||
run: yarn playwright test | ||
- uses: actions/upload-artifact@v3 | ||
if: always() | ||
with: | ||
name: playwright-report | ||
path: playwright-report/ | ||
retention-days: 30 | ||
npm install -g yarn && yarn install --frozen-lockfile | ||
npx playwright install chrome | ||
- name: Run Tests | ||
continue-on-error: false | ||
env: | ||
CURRENTS_PROJECT_ID: ${{ secrets.CURRENTS_PROJECT_ID }} | ||
CURRENTS_RECORD_KEY: ${{ secrets.CURRENTS_RECORD_KEY }} | ||
|
||
run: | | ||
npx pwc --ci-build-id ${{ steps.extract_commit.outputs.commit }} --shard=${{ matrix.shard }}/${{ strategy.job-total }} |
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.