Skip to content

Commit a675121

Browse files
authored
Merge pull request #1 from mrsuh/tests
Tests
2 parents 7cca294 + 4743155 commit a675121

File tree

3 files changed

+39
-1
lines changed

3 files changed

+39
-1
lines changed

.github/workflows/tests.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: "Tests"
2+
3+
on:
4+
push:
5+
6+
jobs:
7+
phpunit:
8+
name: "Tests"
9+
10+
runs-on: ${{ matrix.operating-system }}
11+
12+
strategy:
13+
matrix:
14+
php-version:
15+
- "7.4"
16+
- "8.0"
17+
- "8.1"
18+
operating-system:
19+
- "ubuntu-latest"
20+
21+
steps:
22+
- name: "Checkout"
23+
uses: "actions/checkout@v2"
24+
25+
- name: "Install PHP"
26+
uses: "shivammathur/setup-php@v2"
27+
with:
28+
php-version: "${{ matrix.php-version }}"
29+
ini-values: memory_limit=-1
30+
tools: composer:v2
31+
32+
- name: "Install dependencies"
33+
run: "composer install --no-interaction --no-progress --no-suggest"
34+
35+
- name: "Tests"
36+
run: "php bin/test.php"

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# PHP generics written in PHP
22

3+
![Tests](https://github.com/mrsuh/php-generics/actions/workflows/tests.yml/badge.svg)
4+
35
## Require
46

57
* PHP >= 7.4

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
"require": {
2424
"php": ">=7.4",
2525
"composer-plugin-api": "^1.0|^2.0",
26-
"mrsuh/php-parser": "94.13.2",
26+
"mrsuh/php-parser": "94.13.3",
2727
"symfony/console": "^4.0|^5.0",
2828
"symfony/filesystem": "^4.0|^5.0",
2929
"symfony/finder": "^4.0|^5.0"

0 commit comments

Comments
 (0)