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