Skip to content

Commit ed9e94b

Browse files
authored
Merge pull request #7 from Tobion/workflow-manually-cron
fix tests with php 8 & run tests periodically/manually
2 parents 3bf990e + c94c0e0 commit ed9e94b

File tree

2 files changed

+5
-23
lines changed

2 files changed

+5
-23
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ on:
55
branches:
66
- master
77
pull_request:
8+
workflow_dispatch:
9+
schedule:
10+
- cron: '0 11 26 * *'
811

912
jobs:
1013
build-lowest-version:
@@ -33,7 +36,7 @@ jobs:
3336
strategy:
3437
max-parallel: 10
3538
matrix:
36-
php: ['7.2', '7.3', '7.4']
39+
php: ['7.2', '7.3', '7.4', '8.0']
3740

3841
steps:
3942
- name: Set up PHP
@@ -50,23 +53,3 @@ jobs:
5053

5154
- name: Run tests
5255
run: vendor/bin/simple-phpunit
53-
54-
build-php8:
55-
name: Build (PHP 8)
56-
runs-on: ubuntu-latest
57-
58-
steps:
59-
- name: Set up PHP
60-
uses: shivammathur/setup-php@v2
61-
with:
62-
php-version: 8.0
63-
coverage: 'none'
64-
65-
- name: Checkout code
66-
uses: actions/checkout@v2
67-
68-
- name: Install dependencies
69-
run: composer update --no-interaction --no-progress --prefer-dist
70-
71-
- name: Run tests
72-
run: vendor/bin/simple-phpunit

composer.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,11 @@
1616
"symfony/finder": "^4.4|^5.0",
1717
"symfony/framework-bundle": "^4.4|^5.0",
1818
"symfony/routing": "^4.4|^5.0",
19-
"zircote/swagger-php": "^2.0.14"
19+
"zircote/swagger-php": "2.x-dev"
2020
},
2121
"require-dev": {
2222
"symfony/phpunit-bridge": "^5.0@dev"
2323
},
24-
"minimum-stability": "dev",
2524
"autoload": {
2625
"psr-4": {
2726
"Tobion\\OpenApiSymfonyRouting\\": "src/"

0 commit comments

Comments
 (0)