Skip to content

Commit a88dccf

Browse files
authored
Merge pull request #33 from sirbrillig/migrate-to-github-actions
Migrate CI to GitHub Actions and upgrade PHPUnit for PHP 8 compatibility
2 parents d474f39 + 8ed940a commit a88dccf

18 files changed

Lines changed: 935 additions & 664 deletions

.circleci/config.yml

Lines changed: 0 additions & 14 deletions
This file was deleted.

.github/workflows/tests.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Tests
2+
3+
on:
4+
push:
5+
pull_request:
6+
7+
jobs:
8+
test:
9+
runs-on: ubuntu-latest
10+
strategy:
11+
matrix:
12+
php-version: ['7.4', '8.0', '8.1', '8.2']
13+
fail-fast: false
14+
15+
name: PHP ${{ matrix.php-version }}
16+
17+
steps:
18+
- uses: actions/checkout@v4
19+
20+
- name: Set up PHP
21+
uses: shivammathur/setup-php@v2
22+
with:
23+
php-version: ${{ matrix.php-version }}
24+
tools: composer
25+
26+
- name: Install dependencies
27+
run: composer install
28+
29+
- name: Run tests
30+
run: composer test

composer.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,9 @@
1010
"minimum-stability": "dev",
1111
"prefer-stable": true,
1212
"require-dev": {
13-
"phpunit/phpunit": "^5.2",
14-
"antecedent/patchwork": "^2.0.0"
13+
"phpunit/phpunit": "^9.5",
14+
"antecedent/patchwork": "^2.0.0",
15+
"doctrine/instantiator": "^1.5.0"
1516
},
1617
"scripts": {
1718
"test": ["vendor/bin/phpunit"]

0 commit comments

Comments
 (0)