chore(deps): update nx to v19.5.7 #1775
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: ⚙️ E2E tests | |
on: | |
pull_request: | |
jobs: | |
e2e: | |
if: ${{ !contains(github.head_ref , 'release/') }} | |
name: E2E | |
runs-on: ubuntu-latest | |
steps: | |
- uses: taiga-family/ci/actions/setup/[email protected] | |
- uses: taiga-family/ci/actions/setup/[email protected] | |
- uses: taiga-family/ci/actions/setup/[email protected] | |
- name: Install Playwright Browsers | |
run: npx playwright install --with-deps chromium | |
- name: Building demo-app of git-branch without cache | |
run: npx nx prerender editor-demo | |
- uses: jacobtomlinson/gha-find-replace@v3 | |
with: | |
find: '<base href="./">' | |
replace: '<base href="/">' | |
include: '${{ env.DIST }}/index.html' | |
regex: false | |
- name: Serve ${{ env.DIST }} in background | |
run: | | |
npx ws --port ${{ env.NG_SERVER_PORT }} --directory ${{ env.DIST }} --spa index.html & | |
npx wait-on http://localhost:${{ env.NG_SERVER_PORT }} | |
- name: Run screenshot tests on ${{ env.DIST }} | |
run: npx nx e2e editor-demo-playwright -- --update-snapshots | |
- name: Download ${{ env.DIST_NEXT }} for serve locally | |
run: | | |
git clone \ | |
--depth 1 \ | |
--branch snapshots/demo/next/${{ github.base_ref }} \ | |
https://github.com/taiga-family/editor.git ${{ env.DIST_NEXT }} | |
- uses: jacobtomlinson/gha-find-replace@v3 | |
with: | |
find: '<base href="./">' | |
replace: '<base href="/">' | |
include: '${{ env.DIST_NEXT }}/index.html' | |
regex: false | |
- name: Serve ${{ env.DIST_NEXT }} in background | |
run: | | |
npx ws --port ${{ env.NG_SERVER_PORT }} --directory ${{ env.DIST_NEXT }} --spa index.html & | |
npx wait-on http://localhost:${{ env.NG_SERVER_PORT }} | |
- name: Run screenshot tests on ${{ env.DIST_NEXT }} | |
continue-on-error: true | |
run: npx nx e2e-ui editor-demo-playwright | |
- name: Debug output | |
continue-on-error: true | |
run: tree ./projects/demo-playwright/tests-results | |
- name: Check if diff-output exists | |
id: diff-checker | |
run: | | |
echo "diff_exist=$(find ./total -regex '.*diff\.png$' | wc -l | sed -e 's/^[[:space:]]*//')" >> $GITHUB_OUTPUT | |
- name: Fall with an error if diff-output exists | |
if: ${{ steps.diff-checker.outputs.diff_exist != '0' }} | |
run: | | |
find ./total -regex '.*diff\.png$' -exec echo "{}" \; | |
exit 1 | |
concurrency: | |
group: e2e-${{ github.workflow }}-${{ github.head_ref || github.ref_name }} | |
cancel-in-progress: true |