Changeset 58330 for branches/6.1/.github/workflows/end-to-end-tests.yml
- Timestamp:
- 06/04/2024 01:26:19 PM (11 months ago)
- Location:
- branches/6.1
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/6.1
- Property svn:mergeinfo changed
/trunk merged: 56113-56114,57124-57125,57249,57918,58157
- Property svn:mergeinfo changed
-
branches/6.1/.github/workflows/end-to-end-tests.yml
r57205 r58330 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 # - Sets up Node.js.40 # - Logs debug information about the GitHub Action runner.41 # - Installs npm dependencies.42 # - Builds WordPress to run from the `build` directory.43 # - Starts the WordPress Docker container.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: Set up Node.js 65 uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # v3.6.0 66 with: 67 node-version-file: '.nvmrc' 68 cache: npm 69 70 - name: Log debug information 71 run: | 72 npm --version 73 node --version 74 curl --version 75 git --version 76 svn --version 77 locale -a 78 79 - name: Install npm Dependencies 80 run: npm ci 81 82 - name: Build WordPress 83 run: npm run build 84 85 - name: Start Docker environment 86 run: | 87 npm run env:start 88 89 - name: Log running Docker containers 90 run: docker ps -a 91 92 - name: Docker debug information 93 run: | 94 docker -v 95 docker-compose -v 96 docker-compose run --rm mysql mysql --version 97 docker-compose run --rm php php --version 98 docker-compose run --rm php php -m 99 docker-compose run --rm php php -i 100 docker-compose run --rm php locale -a 101 102 - name: Install WordPress 103 run: npm run env:install 104 105 - name: Run E2E tests 106 run: npm run test:e2e 107 108 - name: Ensure version-controlled files are not modified or deleted 109 run: git diff --exit-code 110 111 slack-notifications: 112 name: Slack Notifications 113 uses: WordPress/wordpress-develop/.github/workflows/slack-notifications.yml@trunk 114 needs: [ e2e-tests ] 115 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 ] 116 48 with: 117 calling_status: ${{ needs.e2e-tests.result == 'success' && 'success' || needs.e2e-tests.result == 'cancelled' && 'cancelled' || 'failure' }} 118 secrets: 119 SLACK_GHA_SUCCESS_WEBHOOK: ${{ secrets.SLACK_GHA_SUCCESS_WEBHOOK }} 120 SLACK_GHA_CANCELLED_WEBHOOK: ${{ secrets.SLACK_GHA_CANCELLED_WEBHOOK }} 121 SLACK_GHA_FIXED_WEBHOOK: ${{ secrets.SLACK_GHA_FIXED_WEBHOOK }} 122 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 123 52 124 53 failed-workflow: 125 54 name: Failed workflow tasks 126 55 runs-on: ubuntu-latest 127 needs: [ e2e-tests, slack-notifications ] 56 permissions: 57 actions: write 58 needs: [ e2e-tests ] 128 59 if: | 129 60 always() && … … 134 65 needs.e2e-tests.result == 'cancelled' || needs.e2e-tests.result == 'failure' 135 66 ) 136 137 67 steps: 138 68 - name: Dispatch workflow run
Note: See TracChangeset
for help on using the changeset viewer.