-
Notifications
You must be signed in to change notification settings - Fork 118
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
141 changed files
with
6,748 additions
and
6,311 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 |
---|---|---|
|
@@ -89,15 +89,15 @@ jobs: | |
path: stateful-build.tar | ||
|
||
stateless: | ||
name: stateless (${{matrix.shard}}) | ||
needs: build-stateless | ||
timeout-minutes: 20 | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
node-version: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13] | ||
shard: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10] | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- run: ./scripts/check-chrome.sh | ||
|
||
- uses: pnpm/[email protected] | ||
with: | ||
|
@@ -122,40 +122,28 @@ jobs: | |
- name: Untar files | ||
run: tar -xvf stateless-build.tar | ||
|
||
- name: Install window server | ||
run: sudo apt-get install -y fluxbox | ||
- name: Install playwright | ||
run: npx playwright install chromium | ||
|
||
- name: Run tests | ||
run: | | ||
Xvfb :20 -screen 0 800x600x16 & | ||
sleep 1 && | ||
DISPLAY=:20 fluxbox -log /tmp/fluxbox.log & | ||
DISPLAY=:20 pnpm e2e:ci -nb | ||
env: | ||
CYPRESS_DEPLOYSENTINEL_KEY: ${{ secrets.CYPRESS_DEPLOYSENTINEL_KEY }} | ||
CI_BUILD_ID: ${{ github.sha }}-${{ github.workflow }}-${{ github.event_name }} | ||
GH_USERNAME: ${{ secrets.GH_USERNAME }} | ||
GH_PAT: ${{ secrets.GH_PAT }} | ||
|
||
- uses: actions/upload-artifact@v2 | ||
if: failure() | ||
with: | ||
name: synpress-screenshots | ||
path: e2e/screenshots | ||
PLAYWRIGHT_SHARD=${{matrix.shard}} PLAYWRIGHT_TOTAL=${{strategy.job-total}} pnpm e2e:ci -nb | ||
- uses: actions/upload-artifact@v2 | ||
- uses: actions/upload-artifact@v3 | ||
if: always() | ||
with: | ||
name: synpress-videos | ||
path: e2e/videos | ||
name: stateless-report | ||
path: playwright-report/ | ||
retention-days: 30 | ||
|
||
stateful: | ||
name: stateful (${{matrix.shard}}) | ||
needs: build-stateful | ||
timeout-minutes: 10 | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
node-version: [101, 102, 103, 104] | ||
shard: [1, 2, 3] | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
@@ -184,35 +172,21 @@ jobs: | |
- name: Untar files | ||
run: tar -xvf stateful-build.tar | ||
|
||
- name: Install window server | ||
run: sudo apt-get install -y fluxbox | ||
|
||
- name: Check chrome version | ||
run: google-chrome --product-version | ||
- name: Install playwright | ||
run: npx playwright install chromium | ||
|
||
- name: Run tests | ||
run: | | ||
Xvfb :20 -screen 0 800x600x16 & | ||
sleep 1 && | ||
DISPLAY=:20 fluxbox -log /tmp/fluxbox.log & | ||
parallel --lb --halt now,success=1,fail=1 ::: \ | ||
"pnpm wrangle" \ | ||
"pnpm wait-on http://localhost:8788 && DISPLAY=:20 pnpm synpress:ci:stateful --parallel --ci-build-id ${{ github.sha }}-${{ github.workflow }}-${{ github.event_name }} --group stateful" | ||
"pnpm wait-on http://localhost:8788 && npx playwright test --shard=${{matrix.shard}}/${{strategy.job-total}} --project=stateful" | ||
env: | ||
CYPRESS_DEPLOYSENTINEL_KEY: ${{ secrets.CYPRESS_DEPLOYSENTINEL_KEY }} | ||
NEXT_PUBLIC_GRAPH_URI: https://api.thegraph.com/subgraphs/name/tateb/enssubdomaincount | ||
SECRET_WORDS: ${{ secrets.SECRET_WORDS }} | ||
GH_USERNAME: ${{ secrets.GH_USERNAME }} | ||
GH_PAT: ${{ secrets.GH_PAT }} | ||
|
||
- uses: actions/upload-artifact@v2 | ||
if: failure() | ||
with: | ||
name: synpress-screenshots | ||
path: e2e/screenshots | ||
|
||
- uses: actions/upload-artifact@v2 | ||
- uses: actions/upload-artifact@v3 | ||
if: always() | ||
with: | ||
name: synpress-videos | ||
path: e2e/videos | ||
name: stateful-report | ||
path: playwright-report/ | ||
retention-days: 30 |
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 |
---|---|---|
|
@@ -7,6 +7,7 @@ node_modules | |
|
||
# testing | ||
/coverage | ||
/playwright-report | ||
|
||
# next.js | ||
/.next/ | ||
|
Binary file not shown.
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.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.