From 386874a0bdb070752c939e62fbe7f1a7fc815578 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Milan=20Felix=20=C5=A0ulc?= Date: Sat, 10 Jun 2023 16:03:40 +0200 Subject: [PATCH] PHP: require 8.1+ --- .github/.kodiak.toml | 10 ++++++++++ .github/workflows/codesniffer.yml | 15 +++++++++++++++ .github/workflows/coverage.yml | 15 +++++++++++++++ .github/workflows/phpstan.yml | 15 +++++++++++++++ .github/workflows/tests.yml | 30 ++++++++++++++++++++++++++++++ composer.json | 2 +- 6 files changed, 86 insertions(+), 1 deletion(-) create mode 100644 .github/.kodiak.toml create mode 100644 .github/workflows/codesniffer.yml create mode 100644 .github/workflows/coverage.yml create mode 100644 .github/workflows/phpstan.yml create mode 100644 .github/workflows/tests.yml diff --git a/.github/.kodiak.toml b/.github/.kodiak.toml new file mode 100644 index 0000000..60c34b6 --- /dev/null +++ b/.github/.kodiak.toml @@ -0,0 +1,10 @@ +version = 1 + +[merge] +automerge_label = "automerge" +blacklist_title_regex = "^WIP.*" +blacklist_labels = ["WIP"] +method = "rebase" +delete_branch_on_merge = true +notify_on_conflict = true +optimistic_updates = false diff --git a/.github/workflows/codesniffer.yml b/.github/workflows/codesniffer.yml new file mode 100644 index 0000000..dfc76ff --- /dev/null +++ b/.github/workflows/codesniffer.yml @@ -0,0 +1,15 @@ +name: "Codesniffer" + +on: + pull_request: + + push: + branches: ["*"] + + schedule: + - cron: "0 8 * * 1" + +jobs: + codesniffer: + name: "Codesniffer" + uses: contributte/.github/.github/workflows/codesniffer.yml@v1 diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml new file mode 100644 index 0000000..02e24b5 --- /dev/null +++ b/.github/workflows/coverage.yml @@ -0,0 +1,15 @@ +name: "Coverage" + +on: + pull_request: + + push: + branches: ["*"] + + schedule: + - cron: "0 8 * * 1" + +jobs: + test80: + name: "Nette Tester" + uses: contributte/.github/.github/workflows/nette-tester-coverage.yml@v1 diff --git a/.github/workflows/phpstan.yml b/.github/workflows/phpstan.yml new file mode 100644 index 0000000..db3ad34 --- /dev/null +++ b/.github/workflows/phpstan.yml @@ -0,0 +1,15 @@ +name: "Phpstan" + +on: + pull_request: + + push: + branches: ["*"] + + schedule: + - cron: "0 8 * * 1" + +jobs: + phpstan: + name: "Phpstan" + uses: contributte/.github/.github/workflows/phpstan.yml@v1 diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml new file mode 100644 index 0000000..06d0027 --- /dev/null +++ b/.github/workflows/tests.yml @@ -0,0 +1,30 @@ +name: "Nette Tester" + +on: + pull_request: + + push: + branches: ["*"] + + schedule: + - cron: "0 8 * * 1" + +jobs: + test82: + name: "Nette Tester" + uses: contributte/.github/.github/workflows/nette-tester.yml@v1 + with: + php: "8.2" + + test81: + name: "Nette Tester" + uses: contributte/.github/.github/workflows/nette-tester.yml@v1 + with: + php: "8.1" + + testlowest: + name: "Nette Tester" + uses: contributte/.github/.github/workflows/nette-tester.yml@v1 + with: + php: "8.1" + composer: "composer update --no-interaction --no-progress --prefer-dist --prefer-stable --prefer-lowest" diff --git a/composer.json b/composer.json index b5308df..0ba593d 100644 --- a/composer.json +++ b/composer.json @@ -17,7 +17,7 @@ } ], "require": { - "php": ">=7.2", + "php": ">=8.1", "contributte/di": "^0.5.0", "doctrine/cache": "^1.8.0" },