|
18 | 18 | workflow_dispatch: |
19 | 19 | push: |
20 | 20 | # only run for branches, not tags |
21 | | - branches-ignore: php8 |
| 21 | + branches: ['**'] |
22 | 22 | pull_request: |
23 | 23 |
|
24 | 24 | jobs: |
@@ -108,76 +108,3 @@ jobs: |
108 | 108 | run: | |
109 | 109 | echo '{}' | jq '.http.upload.skip |= false | .http.upload.httpBinUrl |= "http://localhost:8080"' > tests/config.json |
110 | 110 | vendor/bin/phpunit tests |
111 | | -
|
112 | | - test-php8: |
113 | | - runs-on: ubuntu-latest |
114 | | - strategy: |
115 | | - matrix: |
116 | | - php: [8.0, 8.1, 8.2, 8.3, 8.4, 8.5] |
117 | | - fail-fast: false |
118 | | - steps: |
119 | | - - uses: actions/checkout@v6 |
120 | | - with: |
121 | | - persist-credentials: false |
122 | | - fetch-depth: 0 |
123 | | - - name: Rebase PHP8 branch |
124 | | - env: |
125 | | - USER_EMAIL: ${{ github.event.pusher.email }} |
126 | | - USER_NAME: ${{ github.event.pusher.name }} |
127 | | - REBASE_TARGET: ${{ github.head_ref || github.ref_name }} |
128 | | - run: | |
129 | | - git config user.email "$USER_EMAIL" |
130 | | - git config user.name "$USER_NAME" |
131 | | - git pull |
132 | | - git checkout php8 |
133 | | - git rebase "$REBASE_TARGET" php8 |
134 | | - git status |
135 | | - echo 'diff origin/php8:' |
136 | | - git diff origin/php8 |
137 | | - echo 'diff current:' |
138 | | - git diff "$REBASE_TARGET" |
139 | | - - uses: shivammathur/setup-php@v2 |
140 | | - with: |
141 | | - php-version: ${{matrix.php}} |
142 | | - coverage: xdebug |
143 | | - - name: Cache Composer packages |
144 | | - id: composer-cache |
145 | | - uses: actions/cache@v4 |
146 | | - with: |
147 | | - path: vendor |
148 | | - key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }} |
149 | | - restore-keys: | |
150 | | - ${{ runner.os }}-php8- |
151 | | - - name: Install dependencies |
152 | | - run: composer install -q --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist |
153 | | - - name: PHP Unit |
154 | | - run: | |
155 | | - echo '{}' | jq '.http.upload.skip |= true' > tests/config.json |
156 | | - vendor/bin/phpunit tests |
157 | | -
|
158 | | - rebase-php8: |
159 | | - runs-on: ubuntu-latest |
160 | | - needs: test-php8 |
161 | | - if: github.ref_name == 'master' |
162 | | - permissions: |
163 | | - contents: write |
164 | | - steps: |
165 | | - - uses: actions/checkout@v6 |
166 | | - with: |
167 | | - ref: php8 |
168 | | - fetch-depth: 0 |
169 | | - - name: Rebase PHP8 branch |
170 | | - env: |
171 | | - USER_EMAIL: ${{ github.event.pusher.email }} |
172 | | - USER_NAME: ${{ github.event.pusher.name }} |
173 | | - run: | |
174 | | - git config user.email "$USER_EMAIL" |
175 | | - git config user.name "$USER_NAME" |
176 | | - git pull |
177 | | - git rebase origin/master php8 |
178 | | - git status |
179 | | - echo 'diff origin/php8:' |
180 | | - git diff origin/php8 |
181 | | - echo 'diff master:' |
182 | | - git diff origin/master |
183 | | - git push --force-with-lease |
0 commit comments