Changeset 58300 for branches/6.3/.github/workflows/end-to-end-tests.yml
- Timestamp:
- 06/03/2024 05:00:05 PM (19 months ago)
- Location:
- branches/6.3
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
.github/workflows/end-to-end-tests.yml (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/6.3
- Property svn:mergeinfo changed
/trunk merged: 57124-57125,57249,57918,58157
- Property svn:mergeinfo changed
-
branches/6.3/.github/workflows/end-to-end-tests.yml
r56539 r58300 36 36 jobs: 37 37 # Runs the end-to-end test suite. 38 #39 # Performs the following steps:40 # - Sets environment variables.41 # - Checks out the repository.42 # - Sets up Node.js.43 # - Logs debug information about the GitHub Action runner.44 # - Installs npm dependencies.45 # - Builds WordPress to run from the `build` directory.46 # - Starts the WordPress Docker container.47 # - Logs the running Docker containers.48 # - Logs Docker debug information (about both the Docker installation within the runner and the WordPress container).49 # - Install WordPress within the Docker container.50 # - Run the E2E tests.51 # - Ensures version-controlled files are not modified or deleted.52 38 e2e-tests: 53 name: E2E Testswith SCRIPT_DEBUG ${{ matrix.LOCAL_SCRIPT_DEBUG && 'enabled' || 'disabled' }}54 runs-on: ubuntu-latest39 name: Test with SCRIPT_DEBUG ${{ matrix.LOCAL_SCRIPT_DEBUG && 'enabled' || 'disabled' }} 40 uses: WordPress/wordpress-develop/.github/workflows/reusable-end-to-end-tests.yml@trunk 55 41 permissions: 56 42 contents: read 57 timeout-minutes: 2058 43 if: ${{ github.repository == 'WordPress/wordpress-develop' || github.event_name == 'pull_request' }} 59 44 strategy: … … 61 46 matrix: 62 47 LOCAL_SCRIPT_DEBUG: [ true, false ] 63 64 steps: 65 - name: Configure environment variables 66 run: | 67 echo "PHP_FPM_UID=$(id -u)" >> $GITHUB_ENV 68 echo "PHP_FPM_GID=$(id -g)" >> $GITHUB_ENV 69 70 - name: Checkout repository 71 uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0 72 73 - name: Set up Node.js 74 uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # v3.6.0 75 with: 76 node-version-file: '.nvmrc' 77 cache: npm 78 79 - name: Log debug information 80 run: | 81 npm --version 82 node --version 83 curl --version 84 git --version 85 svn --version 86 locale -a 87 88 - name: Install npm Dependencies 89 run: npm ci 90 91 - name: Build WordPress 92 run: npm run build 93 94 - name: Start Docker environment 95 run: | 96 npm run env:start 97 98 - name: Log running Docker containers 99 run: docker ps -a 100 101 - name: Docker debug information 102 run: | 103 docker -v 104 docker-compose -v 105 docker-compose run --rm mysql mysql --version 106 docker-compose run --rm php php --version 107 docker-compose run --rm php php -m 108 docker-compose run --rm php php -i 109 docker-compose run --rm php locale -a 110 111 - name: Install WordPress 112 env: 113 LOCAL_SCRIPT_DEBUG: ${{ matrix.LOCAL_SCRIPT_DEBUG }} 114 run: npm run env:install 115 116 - name: Run E2E tests 117 run: npm run test:e2e 118 119 - name: Archive debug artifacts (screenshots, HTML snapshots) 120 uses: actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce # v3.1.2 121 if: always() 122 with: 123 name: failures-artifacts 124 path: artifacts 125 if-no-files-found: ignore 126 127 - name: Ensure version-controlled files are not modified or deleted 128 run: git diff --exit-code 48 with: 49 LOCAL_SCRIPT_DEBUG: ${{ matrix.LOCAL_SCRIPT_DEBUG }} 50 install-gutenberg: false 129 51 130 52 failed-workflow: … … 144 66 steps: 145 67 - name: Dispatch workflow run 146 uses: actions/github-script@ 98814c53be79b1d30f795b907e553d8679345975 # v6.4.068 uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1 147 69 with: 148 70 retries: 2
Note: See TracChangeset
for help on using the changeset viewer.