Skip to content

Commit

Permalink
user container for e2e tests
Browse files Browse the repository at this point in the history
  • Loading branch information
younes200 authored Nov 9, 2023
1 parent 7b3700d commit 992b82b
Showing 1 changed file with 6 additions and 19 deletions.
25 changes: 6 additions & 19 deletions .github/workflows/test-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ jobs:
tests:
timeout-minutes: 60
runs-on: ubuntu-latest
container:
image: mcr.microsoft.com/playwright:v1.39.0-jammy

services:
redis:
Expand Down Expand Up @@ -45,25 +47,10 @@ jobs:
cache: 'yarn'
- run: yarn install --frozen-lockfile

- name: Cache node modules
id: cache-npm
uses: actions/cache@v3
env:
cache-name: cache-node-modules
with:
path: ~/.npm
key: ${{ runner.os }}-build-${{ env.cache-name }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}
- name: Copy .env
run: cp .env.ci .env

- name: build
run: yarn build --filter=frontend --filter=backend

- name: Install Playwright Browsers
run: npx playwright install --with-deps
- name: Build apps
run: |
cp .env.ci .env
yarn build --filter=frontend --filter=backend
- name: Run Playwright tests
run: npx playwright test
Expand Down

0 comments on commit 992b82b

Please sign in to comment.