Skip to content

Commit

Permalink
chore: update GH
Browse files Browse the repository at this point in the history
  • Loading branch information
Soare-Robert-Daniel committed May 31, 2024
1 parent 565525d commit a0f7fd8
Showing 1 changed file with 12 additions and 22 deletions.
34 changes: 12 additions & 22 deletions .github/workflows/test-e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,7 @@ on:
branches-ignore: master
jobs:
e2e:
name: E2E for ${{ matrix.env }}
env:
DOCKER_FILE: docker-compose.ci.yml
strategy:
fail-fast: false
matrix:
env: ["default","gutenberg"]
name: E2E
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
Expand All @@ -37,19 +31,15 @@ jobs:
run: composer install --no-dev
- name: Install environment
run: |
npm run up:ci
bash ./bin/run-e2e-tests-${{matrix.env}}.sh
- name: Run ${{ matrix.env }} Cypress tests
env:
GITHUB_TOKEN: ${{ secrets.BOT_TOKEN }}
uses: cypress-io/github-action@v6
npm run wp-env start
npm run test:e2e
- name: Archive test results
if: failure()
uses: actions/upload-artifact@v4
with:
env: host=localhost,port=8080
config-file: cypress.config.js
browser: chrome
install: ${{ ! steps.npm-and-build-cache.outputs.cache-hit }}
spec: cypress/e2e/${{ matrix.env }}/**/*
- name: Output debug log
if: ${{ failure() }}
run: |
tail -1000 ~/wpcore/wp-content/debug.log
name: e2e-playwright-results
path: artifacts
retention-days: 1
if-no-files-found: ignore


0 comments on commit a0f7fd8

Please sign in to comment.