Skip to content

Commit 962a15f

Browse files
committed
Split off testing against httpbin.org to a separate action
1 parent aa74b01 commit 962a15f

File tree

2 files changed

+50
-2
lines changed

2 files changed

+50
-2
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ jobs:
7474
run: composer install -q --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist
7575
- name: PHP Unit
7676
run: |
77-
echo '{}' | jq '.http.upload.skip |= ${{ secrets.SKIP_HTTP_UPLOAD }}' > tests/config.json
77+
echo '{}' | jq '.http.upload.skip |= true' > tests/config.json
7878
vendor/bin/phpunit tests
7979
8080
test-php8:
@@ -120,7 +120,7 @@ jobs:
120120
run: composer install -q --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist
121121
- name: PHP Unit
122122
run: |
123-
echo '{}' | jq '.http.upload.skip |= ${{ secrets.SKIP_HTTP_UPLOAD }}' > tests/config.json
123+
echo '{}' | jq '.http.upload.skip |= true' > tests/config.json
124124
vendor/bin/phpunit tests
125125
126126
rebase-php8:
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
# Copyright 2025 Rob Spoor
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
name: Build
16+
17+
on:
18+
workflow_dispatch:
19+
push:
20+
# only run for branches, not tags
21+
branches-ignore: php8
22+
pull_request:
23+
24+
jobs:
25+
test:
26+
runs-on: ubuntu-latest
27+
steps:
28+
- uses: actions/checkout@v5
29+
with:
30+
persist-credentials: false
31+
- uses: shivammathur/setup-php@v2
32+
with:
33+
php-version: '7.4'
34+
coverage: xdebug
35+
- name: Cache Composer packages
36+
id: composer-cache
37+
uses: actions/cache@v4
38+
with:
39+
path: vendor
40+
key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }}
41+
restore-keys: |
42+
${{ runner.os }}-php-
43+
- name: Install dependencies
44+
run: composer install -q --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist
45+
- name: PHP Unit
46+
run: |
47+
echo '{}' | jq '.http.upload.skip |= false' > tests/config.json
48+
vendor/bin/phpunit tests

0 commit comments

Comments
 (0)