-
Notifications
You must be signed in to change notification settings - Fork 0
test(playwright): add playwright #250
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
Dependency Review✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.OpenSSF ScorecardScorecard details
Scanned Files
|
📦 Next.js Bundle Analysis for dsm23-next-payloadcms-templateThis analysis was generated by the Next.js Bundle Analysis action. 🤖
|
| Page | Size (compressed) |
|---|---|
global |
100.66 KB (🟢 95 B) |
Details
The global bundle is the javascript bundle that loads alongside every page. It is in its own category because its impact is much higher - an increase to its size means that every page on your website loads slower, and a decrease means every page loads faster.
Any third party scripts you have added directly to your app using the <script> tag are not accounted for in this analysis
If you want further insight into what is behind the changes, give @next/bundle-analyzer a try!
Twenty Pages Changed Size
The following pages changed size from the code in this PR compared to its base branch:
| Page | Size (compressed) | First Load |
|---|---|---|
/_not-found/page |
986 B (🟢 -1 B) |
101.63 KB |
/(frontend)/(sitemaps)/pages-sitemap.xml/route |
161 B (🟢 1 B) |
100.82 KB |
/(frontend)/(sitemaps)/posts-sitemap.xml/route |
161 B (🟢 1 B) |
100.82 KB |
/(frontend)/next/exit-preview/route |
161 B (🟢 1 B) |
100.82 KB |
/(frontend)/next/preview/route |
161 B (🟢 1 B) |
100.82 KB |
/(payload)/api/health/route |
161 B (🟢 1 B) |
100.82 KB |
/(frontend)/next/seed/route |
161 B (🟢 1 B) |
100.82 KB |
/(payload)/api/[...slug]/route |
32.09 KB (1 B) |
132.75 KB |
/(payload)/api/graphql-playground/route |
32.09 KB (1 B) |
132.75 KB |
/(payload)/api/graphql/route |
161 B (🟢 1 B) |
100.82 KB |
/(payload)/layout |
606.61 KB (🟢 -839 B) |
707.27 KB |
/(payload)/admin/[[...segments]]/not-found |
546.78 KB (🟢 -828 B) |
647.44 KB |
/(payload)/admin/[[...segments]]/page |
546.78 KB (🟢 -828 B) |
647.44 KB |
/(frontend)/layout |
52.62 KB (🟢 83 B) |
153.29 KB |
/(frontend)/not-found |
3.47 KB (🟢 3 B) |
104.13 KB |
/(frontend)/page |
93.78 KB (-1 B) |
194.44 KB |
/(frontend)/posts/page |
23.38 KB (🟢 -13 B) |
124.05 KB |
/(frontend)/posts/page/[pageNumber]/page |
23.38 KB (🟢 -12 B) |
124.04 KB |
/(frontend)/posts/[slug]/page |
48.85 KB (🟢 -25 B) |
149.51 KB |
/(frontend)/search/page |
22.38 KB (🟢 -5 B) |
123.04 KB |
Details
Only the gzipped size is provided here based on an expert tip.
First Load is the size of the global bundle plus the bundle for the individual page. If a user were to show up to your website and land on a given page, the first load size represents the amount of javascript that user would need to download. If next/link is used, subsequent page loads would only need to download that page's bundle (the number in the "Size" column), since the global bundle has already been downloaded.
Any third party scripts you have added directly to your app using the <script> tag are not accounted for in this analysis
Next to the size is how much the size has increased or decreased compared with the base branch of this PR. If this percentage has increased by undefined% or more, there will be a red status indicator applied, indicating that special attention should be given to this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Automatically approving dsm23
65c8b75 to
3c21aef
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Automatically approving dsm23
3c21aef to
42ec414
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Automatically approving dsm23
42ec414 to
dc08442
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Automatically approving dsm23
b598f5a to
43aae55
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Automatically approving dsm23
43aae55 to
f338b98
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Automatically approving dsm23
f338b98 to
4f06089
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Automatically approving dsm23
4f06089 to
f4e0de1
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Automatically approving dsm23
f4e0de1 to
85b5802
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Automatically approving dsm23
85b5802 to
dbf2ac3
Compare
| playwright-test-shard: | ||
| # permissions: | ||
| # contents: read | ||
| timeout-minutes: 60 | ||
| runs-on: ubuntu-24.04 | ||
| strategy: | ||
| fail-fast: false | ||
| matrix: | ||
| shardIndex: [1, 2, 3, 4, 5, 6, 7, 8, 9] | ||
| shardTotal: [9] | ||
| # container: | ||
| # image: mcr.microsoft.com/playwright:v1.52.0-noble@sha256:a021500a801bab0611049217ffad6b9697d827205c15babb86a53bc1a61c02d5 | ||
| steps: | ||
| - name: Harden Runner | ||
| uses: step-security/harden-runner@0634a2670c59f64b4a01f0f96f84700a4088b9f0 # v2.12.0 | ||
| with: | ||
| egress-policy: audit | ||
|
|
||
| - name: Git Checkout | ||
| uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | ||
| with: | ||
| persist-credentials: false | ||
|
|
||
| - name: Install pnpm | ||
| uses: pnpm/action-setup@a7487c7e89a18df4991f7f222e4898a00d66ddda # v4.1.0 | ||
| with: | ||
| run_install: false | ||
|
|
||
| - uses: actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3 | ||
| with: | ||
| # See here for caching with `yarn` https://github.com/actions/cache/blob/main/examples.md#node---yarn or you can leverage caching with actions/setup-node https://github.com/actions/setup-node | ||
| path: | | ||
| ~/.pnpm-store | ||
| ${{ github.workspace }}/.next/cache | ||
| # Generate a new cache whenever packages or source files change. | ||
| key: ${{ runner.os }}-nextjs-${{ hashFiles('**/pnpm-lock.yaml') }}-${{ hashFiles('**/*.js', '**/*.jsx', '**/*.ts', '**/*.tsx') }} | ||
| # If source files changed but packages didn't, rebuild from a prior cache. | ||
| restore-keys: | | ||
| ${{ runner.os }}-nextjs-${{ hashFiles('**/pnpm-lock.yaml') }}- | ||
|
|
||
| - name: Set up Node.js | ||
| uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0 | ||
| with: | ||
| # We want to ensure that the Node.js version running here respects our supported versions | ||
| node-version-file: ".nvmrc" | ||
| cache: "pnpm" | ||
|
|
||
| - name: Set up Docker | ||
| uses: docker/setup-docker-action@b60f85385d03ac8acfca6d9996982511d8620a19 # v4.3.0 | ||
| with: | ||
| version: latest | ||
|
|
||
| - name: Set up Docker Compose | ||
| uses: docker/setup-compose-action@364cc21a5de5b1ee4a7f5f9d3fa374ce0ccde746 #v1.2.0 | ||
| with: | ||
| version: latest | ||
|
|
||
| - name: Install dependencies | ||
| run: pnpm install --frozen-lockfile | ||
|
|
||
| - name: Install Playwright Browsers | ||
| run: pnpm exec playwright install --with-deps | ||
|
|
||
| - name: Run Playwright tests | ||
| run: pnpm exec playwright test --shard=${{ matrix.shardIndex }}/${{ matrix.shardTotal }} | ||
| env: | ||
| FORCE_COLOR: 1 | ||
| PAYLOAD_SECRET: ${{ secrets.PAYLOAD_SECRET_URL }} | ||
| MINIO_ROOT_USER: ${{ vars.MINIO_ROOT_USER }} | ||
| MINIO_ROOT_PASSWORD: ${{ vars.MINIO_ROOT_PASSWORD }} | ||
| MINIO_BUCKET: ${{ vars.MINIO_BUCKET }} | ||
| MINIO_ENDPOINT: ${{ vars.MINIO_ENDPOINT }} | ||
| MINIO_PORT: ${{ vars.MINIO_PORT }} | ||
| NEXT_PUBLIC_SERVER_URL: ${{ vars.NEXT_PUBLIC_SERVER_URL }} | ||
| # Required for firefox | ||
| HOME: /root | ||
|
|
||
| - name: Upload playwright report to GitHub Actions Artifacts | ||
| if: ${{ !cancelled() }} | ||
| uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2 | ||
| with: | ||
| name: playwright-report-${{ matrix.shardIndex }} | ||
| path: playwright-report/ | ||
| retention-days: 1 |
Check warning
Code scanning / zizmor
default permissions used due to no permissions: block Warning
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Automatically approving dsm23
dbf2ac3 to
9bd56a6
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Automatically approving dsm23
9bd56a6 to
a0dabee
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Automatically approving dsm23
a0dabee to
4ab9037
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Automatically approving dsm23
4ab9037 to
c4b095f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Automatically approving dsm23
c4b095f to
da4bef5
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Automatically approving dsm23
No description provided.