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