Try to use Strapi in a service container
Tim Izzo tim@5ika.ch
Fri, 15 Sep 2023 16:50:03 +0200
1 files changed,
11 insertions(+),
0 deletions(-)
jump to
M
.github/workflows/playwright.yml
→
.github/workflows/playwright.yml
@@ -8,6 +8,13 @@ jobs:
test: timeout-minutes: 60 runs-on: ubuntu-latest + services: + strapi: + image: octree/caroster + ports: + - 1337:1337 + env: + NODE_ENV: test steps: - uses: actions/checkout@v3 - uses: actions/setup-node@v3@@ -19,6 +26,10 @@ working-directory: frontend
- name: Install Playwright Browsers run: yarn playwright install --with-deps working-directory: frontend + - name: Wait for Strapi to be ready + uses: jakejarvis/wait-action@master + with: + time: '30s' - name: Run Playwright tests run: yarn playwright test working-directory: frontend