Fix playwright module resolution + parallelize test-runners
Some checks failed
CI/CD / detect-changes (pull_request) Successful in 4s
CI/CD / test-frontend (pull_request) Successful in 4s
CI/CD / test-runners (pull_request) Failing after 24s
CI/CD / test-go-pg (pull_request) Successful in 2m52s
CI/CD / test-sqlite (pull_request) Successful in 2m54s
CI/CD / build-and-deploy (pull_request) Has been skipped
Some checks failed
CI/CD / detect-changes (pull_request) Successful in 4s
CI/CD / test-frontend (pull_request) Successful in 4s
CI/CD / test-runners (pull_request) Failing after 24s
CI/CD / test-go-pg (pull_request) Successful in 2m52s
CI/CD / test-sqlite (pull_request) Successful in 2m54s
CI/CD / build-and-deploy (pull_request) Has been skipped
1. Add npm install playwright to test-runner Dockerfile — the Playwright Docker image installs globally but require() from /work can't resolve it. Local install fixes the module path. 2. Remove test-sqlite dependency from test-runners job so it runs in parallel with DB tests instead of waiting for them. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -374,7 +374,7 @@ jobs:
|
|||||||
# Skipped when: only docs changed.
|
# Skipped when: only docs changed.
|
||||||
test-runners:
|
test-runners:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs: [detect-changes, test-sqlite]
|
needs: [detect-changes]
|
||||||
if: |
|
if: |
|
||||||
!cancelled() && !failure() &&
|
!cancelled() && !failure() &&
|
||||||
(needs.detect-changes.outputs.backend == 'true' ||
|
(needs.detect-changes.outputs.backend == 'true' ||
|
||||||
|
|||||||
@@ -30,6 +30,7 @@ services:
|
|||||||
dockerfile_inline: |
|
dockerfile_inline: |
|
||||||
FROM mcr.microsoft.com/playwright:v1.52.0-noble
|
FROM mcr.microsoft.com/playwright:v1.52.0-noble
|
||||||
WORKDIR /work
|
WORKDIR /work
|
||||||
|
RUN npm init -y && npm install playwright
|
||||||
COPY ci/ /work/ci/
|
COPY ci/ /work/ci/
|
||||||
RUN chmod +x /work/ci/*.sh
|
RUN chmod +x /work/ci/*.sh
|
||||||
depends_on:
|
depends_on:
|
||||||
|
|||||||
Reference in New Issue
Block a user