mirror of
https://github.com/vector-im/element-call.git
synced 2026-08-02 19:49:23 +00:00
use container to skip playwright install
This commit is contained in:
17
.github/workflows/test.yaml
vendored
17
.github/workflows/test.yaml
vendored
@@ -7,7 +7,10 @@ jobs:
|
|||||||
vitest:
|
vitest:
|
||||||
name: Run unit tests
|
name: Run unit tests
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
container:
|
||||||
|
# Make sure to grab the latest version of the Playwright image
|
||||||
|
# https://playwright.dev/docs/docker#pull-the-image
|
||||||
|
image: mcr.microsoft.com/playwright:v1.59.1-noble
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
|
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
|
||||||
@@ -23,8 +26,8 @@ jobs:
|
|||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
# ignore-pnpmfile should never be commited. Make CI crash if it happened (`pnpmfileChecksum` is present)
|
# ignore-pnpmfile should never be commited. Make CI crash if it happened (`pnpmfileChecksum` is present)
|
||||||
run: "pnpm install --frozen-lockfile --ignore-pnpmfile"
|
run: "pnpm install --frozen-lockfile --ignore-pnpmfile"
|
||||||
- name: Install Playwright Browser
|
# - name: Install Playwright Browser
|
||||||
run: pnpm exec playwright install --with-deps chromium
|
# run: pnpm exec playwright install --with-deps chromium
|
||||||
- name: Vitest
|
- name: Vitest
|
||||||
run: "pnpm run test:coverage"
|
run: "pnpm run test:coverage"
|
||||||
- name: Upload to codecov
|
- name: Upload to codecov
|
||||||
@@ -38,6 +41,10 @@ jobs:
|
|||||||
name: Run end-to-end tests
|
name: Run end-to-end tests
|
||||||
timeout-minutes: 60
|
timeout-minutes: 60
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
container:
|
||||||
|
# Make sure to grab the latest version of the Playwright image
|
||||||
|
# https://playwright.dev/docs/docker#pull-the-image
|
||||||
|
image: mcr.microsoft.com/playwright:v1.59.1-noble
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
|
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
|
||||||
with:
|
with:
|
||||||
@@ -51,8 +58,8 @@ jobs:
|
|||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
# ignore-pnpmfile should never be commited. Make CI crash if it happened (`pnpmfileChecksum` is present)
|
# ignore-pnpmfile should never be commited. Make CI crash if it happened (`pnpmfileChecksum` is present)
|
||||||
run: pnpm install --frozen-lockfile --ignore-pnpmfile
|
run: pnpm install --frozen-lockfile --ignore-pnpmfile
|
||||||
- name: Install Playwright Browsers
|
# - name: Install Playwright Browsers
|
||||||
run: pnpm exec playwright install --with-deps
|
# run: pnpm exec playwright install --with-deps
|
||||||
- name: Run backend components
|
- name: Run backend components
|
||||||
run: |
|
run: |
|
||||||
docker compose -f playwright-backend-docker-compose.yml -f playwright-backend-docker-compose.override.yml pull
|
docker compose -f playwright-backend-docker-compose.yml -f playwright-backend-docker-compose.override.yml pull
|
||||||
|
|||||||
Reference in New Issue
Block a user