Skip to content

Commit b0f2051

Browse files
authored
Merge pull request #74 from slimphp/add-github-workflow
Update dependencies and add github workflow
2 parents 6a5ce31 + bfd08cf commit b0f2051

3 files changed

Lines changed: 49 additions & 2 deletions

File tree

.github/dependabot.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: composer
4+
directory: "/"
5+
schedule:
6+
interval: monthly
7+
open-pull-requests-limit: 10
8+
versioning-strategy: increase

.github/workflows/tests.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Tests
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
tests:
7+
name: Tests PHP ${{ matrix.php }}
8+
runs-on: ubuntu-latest
9+
continue-on-error: ${{ matrix.experimental }}
10+
strategy:
11+
fail-fast: false
12+
matrix:
13+
php: [7.3, 7.4, 8.0]
14+
experimental: [false]
15+
include:
16+
- php: 8.0
17+
analysis: true
18+
- php: 8.1
19+
experimental: true
20+
21+
steps:
22+
- name: Checkout
23+
uses: actions/checkout@v2
24+
25+
- name: Set up PHP ${{ matrix.php }}
26+
uses: shivammathur/setup-php@v2
27+
with:
28+
php-version: ${{ matrix.php }}
29+
coverage: xdebug
30+
31+
- name: Install dependencies with Composer
32+
uses: ramsey/composer-install@v1
33+
34+
- name: Coding standards
35+
if: matrix.analysis
36+
run: vendor/bin/phpcs
37+
38+
- name: Tests
39+
run: vendor/bin/phpunit --coverage-clover clover.xml

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@
2828
}
2929
},
3030
"require-dev": {
31-
"phpunit/phpunit": "^8.0",
32-
"slim/psr7": "^1",
31+
"phpunit/phpunit": "^9.5.10",
32+
"slim/psr7": "^1.3.0",
3333
"squizlabs/php_codesniffer": "^3.5"
3434
},
3535
"scripts": {

0 commit comments

Comments
 (0)