From fb3c5ec62703f3b7857ad41180f09638bf8f1f00 Mon Sep 17 00:00:00 2001 From: Marco Carrozzo Date: Wed, 11 Jan 2023 17:57:09 +0100 Subject: [PATCH] enabling chrome and display --- .github/workflows/devel.yml | 2 +- .github/workflows/pull-request.yml | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/devel.yml b/.github/workflows/devel.yml index 171a65abe0..da66c6d200 100644 --- a/.github/workflows/devel.yml +++ b/.github/workflows/devel.yml @@ -54,7 +54,7 @@ env: DOCKER_REPOSITORY: "${{ secrets.DOCKER_REPOSITORY_DOMAIN }}/alfresco/demo-shell" jobs: - run-git-tag: + devel: uses: ./.github/workflows/pull-request.yml secrets: inherit with: diff --git a/.github/workflows/pull-request.yml b/.github/workflows/pull-request.yml index 9abfb64838..772a05672d 100644 --- a/.github/workflows/pull-request.yml +++ b/.github/workflows/pull-request.yml @@ -109,8 +109,13 @@ jobs: fetch-depth: 0 # Fetch all history for all tags and branches - uses: ./.github/actions/setup - uses: ./.github/actions/download-cache-and-artifacts + - name: setup chrome + uses: ./.github/actions/setup-chrome - name: Run unit tests - run: nx affected:test $NX_CALCULATION_FLAGS --exclude="${{ matrix.unit-tests.exclude }}" + run: | + chromedriver --url-base=/wd/hub & + sudo Xvfb -ac :99 -screen 0 1280x1024x24 > /dev/null 2>&1 & # optional + nx affected:test $NX_CALCULATION_FLAGS --exclude="${{ matrix.unit-tests.exclude }}" build-libs: # long timeout required when cache has to be recreated