kopia lustrzana https://github.com/cloudflare/wildebeest
Use playwright docker image in e2e test
This speeds up the build a lot. Also enabled yarn cache for even faster tests.pull/418/head
rodzic
88bc6de05d
commit
d00908096c
|
@ -55,6 +55,8 @@ jobs:
|
||||||
|
|
||||||
test-ui:
|
test-ui:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
container:
|
||||||
|
image: mcr.microsoft.com/playwright:v1.30.0
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
|
@ -62,12 +64,11 @@ jobs:
|
||||||
uses: actions/setup-node@v3
|
uses: actions/setup-node@v3
|
||||||
with:
|
with:
|
||||||
node-version: 16.13.x
|
node-version: 16.13.x
|
||||||
|
cache: "yarn"
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: yarn
|
run: yarn
|
||||||
- name: Run App in the background
|
- name: Run App in the background
|
||||||
run: yarn ci-dev-test-ui &
|
run: yarn ci-dev-test-ui &
|
||||||
- name: Install Playwright Browsers
|
|
||||||
run: yarn playwright install --with-deps
|
|
||||||
- name: Run Playwright tests
|
- name: Run Playwright tests
|
||||||
run: yarn playwright test
|
run: yarn playwright test
|
||||||
- uses: actions/upload-artifact@v3
|
- uses: actions/upload-artifact@v3
|
||||||
|
|
Ładowanie…
Reference in New Issue