Skip to content

Commit

Permalink
fixed tests and removed support of Nette 2.4
Browse files Browse the repository at this point in the history
  • Loading branch information
petrparolek committed Mar 25, 2022
1 parent bb694cf commit d863377
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 16 deletions.
25 changes: 11 additions & 14 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,19 @@ jobs:

strategy:
matrix:
php-version: ["7.2", "7.3", "7.4", "8.0", "8.1"]
operating-system: ["ubuntu-latest"]
php-version: [ "7.2", "7.3", "7.4", "8.0", "8.1" ]
operating-system: [ "ubuntu-latest" ]
composer-args: [ "" ]
include:
- php-version: "7.2"
operating-system: "ubuntu-latest"
composer-args: "--prefer-lowest"
- php-version: "8.0"
operating-system: "ubuntu-latest"
composer-args: ""
fail-fast: false


steps:
- name: "Checkout"
uses: "actions/checkout@v2"
Expand Down Expand Up @@ -76,17 +85,5 @@ jobs:
- name: "PHPStan"
run: "vendor/bin/phpstan analyse --configuration phpstan.neon --level 8 src/"

- name: "Run single test"
run: "php tests/cases/TestRunTest.phpt"

- name: "Tester"
run: "vendor/bin/tester -C tests/cases"

- name: "Install lowest dependencies"
run: "${{ env.composer-install }} --prefer-lowest"

- name: "Run single test"
run: "php tests/cases/TestRunTest.phpt"

- name: "Tester on lowest"
run: "vendor/bin/tester -C tests/cases"
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
},
"require-dev": {
"mockery/mockery": "^1.0",
"nette/bootstrap": "~2.4 | ~3.0",
"nette/utils": "^2.5.7 || ~3.0",
"nette/bootstrap": "^3.0",
"nette/utils": "^3.0",
"ninjify/qa": "^0.13",
"phpstan/phpstan": "^1.0",
"tracy/tracy": "~2.6"
Expand Down

0 comments on commit d863377

Please sign in to comment.