Changeset 58358 for branches/5.9/.github/workflows/end-to-end-tests.yml
- Timestamp:
- 06/06/2024 04:34:11 PM (4 months ago)
- Location:
- branches/5.9
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/5.9
- Property svn:mergeinfo changed
/trunk merged: 53552,53895,56113-56114,57124-57125,57249,57918,58157
- Property svn:mergeinfo changed
-
branches/5.9/.github/workflows/end-to-end-tests.yml
r57201 r58358 27 27 cancel-in-progress: true 28 28 29 # Disable permissions for all available scopes by default. 30 # Any needed permissions should be configured at the job level. 31 permissions: {} 32 29 33 env: 30 34 LOCAL_DIR: build 31 LOCAL_PHP: 8.0-fpm32 35 33 36 jobs: 34 37 # Runs the end-to-end test suite. 35 #36 # Performs the following steps:37 # - Sets environment variables.38 # - Checks out the repository.39 # - Logs debug information about the GitHub Action runner.40 # - Installs Node.js.41 # _ Installs npm dependencies.42 # - Builds WordPress to run from the `build` directory.43 # - Starts the WordPress Docker container.44 # - Logs general debug information.45 # - Logs the running Docker containers.46 # - Logs Docker debug information (about both the Docker installation within the runner and the WordPress container).47 # - Install WordPress within the Docker container.48 # - Run the E2E tests.49 # - Ensures version-controlled files are not modified or deleted.50 38 e2e-tests: 51 name: E2E Tests 52 runs-on: ubuntu-latest 53 timeout-minutes: 20 39 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 41 permissions: 42 contents: read 54 43 if: ${{ github.repository == 'WordPress/wordpress-develop' || github.event_name == 'pull_request' }} 55 56 steps: 57 - name: Configure environment variables 58 run: | 59 echo "PHP_FPM_UID=$(id -u)" >> $GITHUB_ENV 60 echo "PHP_FPM_GID=$(id -g)" >> $GITHUB_ENV 61 62 - name: Checkout repository 63 uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0 64 65 - name: Log debug information 66 run: | 67 npm --version 68 node --version 69 curl --version 70 git --version 71 svn --version 72 php --version 73 php -i 74 locale -a 75 76 - name: Install Node.js 77 uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # v3.6.0 78 with: 79 node-version-file: '.nvmrc' 80 cache: npm 81 82 - name: Install Dependencies 83 run: npm ci 84 85 - name: Build WordPress 86 run: npm run build 87 88 - name: Start Docker environment 89 run: | 90 npm run env:start 91 92 - name: General debug information 93 run: | 94 npm --version 95 node --version 96 curl --version 97 git --version 98 svn --version 99 100 - name: Log running Docker containers 101 run: docker ps -a 102 103 - name: Docker debug information 104 run: | 105 docker -v 106 docker-compose -v 107 docker-compose run --rm mysql mysql --version 108 docker-compose run --rm php php --version 109 docker-compose run --rm php php -m 110 docker-compose run --rm php php -i 111 docker-compose run --rm php locale -a 112 113 - name: Install WordPress 114 run: npm run env:install 115 116 - name: Run E2E tests 117 run: npm run test:e2e 118 119 - name: Ensure version-controlled files are not modified or deleted 120 run: git diff --exit-code 121 122 slack-notifications: 123 name: Slack Notifications 124 uses: WordPress/wordpress-develop/.github/workflows/slack-notifications.yml@trunk 125 needs: [ e2e-tests ] 126 if: ${{ github.repository == 'WordPress/wordpress-develop' && github.event_name != 'pull_request' && always() }} 44 strategy: 45 fail-fast: false 46 matrix: 47 LOCAL_SCRIPT_DEBUG: [ true, false ] 127 48 with: 128 calling_status: ${{ needs.e2e-tests.result == 'success' && 'success' || needs.e2e-tests.result == 'cancelled' && 'cancelled' || 'failure' }} 129 secrets: 130 SLACK_GHA_SUCCESS_WEBHOOK: ${{ secrets.SLACK_GHA_SUCCESS_WEBHOOK }} 131 SLACK_GHA_CANCELLED_WEBHOOK: ${{ secrets.SLACK_GHA_CANCELLED_WEBHOOK }} 132 SLACK_GHA_FIXED_WEBHOOK: ${{ secrets.SLACK_GHA_FIXED_WEBHOOK }} 133 SLACK_GHA_FAILURE_WEBHOOK: ${{ secrets.SLACK_GHA_FAILURE_WEBHOOK }} 49 LOCAL_SCRIPT_DEBUG: ${{ matrix.LOCAL_SCRIPT_DEBUG }} 50 php-version: '8.0' 51 install-gutenberg: false 134 52 135 53 failed-workflow: 136 54 name: Failed workflow tasks 137 55 runs-on: ubuntu-latest 138 needs: [ e2e-tests, slack-notifications ] 56 permissions: 57 actions: write 58 needs: [ e2e-tests ] 139 59 if: | 140 60 always() && … … 145 65 needs.e2e-tests.result == 'cancelled' || needs.e2e-tests.result == 'failure' 146 66 ) 147 148 67 steps: 149 68 - name: Dispatch workflow run
Note: See TracChangeset
for help on using the changeset viewer.