From a119e2bbb04a97dc47bc9ba0c2f44f0a09b1612d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kuba=20Wer=C5=82os?= Date: Mon, 18 Aug 2025 09:17:53 +0200 Subject: [PATCH 1/2] Add simple CI --- .github/workflows/ci.yaml | 28 ++++++++++++++++++++++++++++ composer.json | 2 +- 2 files changed, 29 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/ci.yaml diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml new file mode 100644 index 0000000..4d5e78c --- /dev/null +++ b/.github/workflows/ci.yaml @@ -0,0 +1,28 @@ +name: CI +on: + pull_request: ~ + push: ~ +jobs: + verify: + name: PHP ${{ matrix.php-version }} ${{ matrix.description }} + strategy: + fail-fast: false + matrix: + include: + - php-version: '7.4' + - php-version: '8.0' + - php-version: '8.1' + - php-version: '8.2' + - php-version: '8.3' + - php-version: '8.4' + - php-version: '8.5' + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v5 + + - uses: shivammathur/setup-php@v2 + with: + php-version: ${{ matrix.php-version }} + extensions: none, ctype, curl, dom, json, mbstring, opcache, openssl, simplexml, tokenizer, xml, xmlwriter + + - run: ./vendor/bin/simple-phpunit diff --git a/composer.json b/composer.json index 32f29ef..986f470 100644 --- a/composer.json +++ b/composer.json @@ -17,7 +17,7 @@ "php": "^5.6 || ^7.0 || ^8.0" }, "require-dev": { - "symfony/phpunit-bridge": "^5.1" + "symfony/phpunit-bridge": "^5.1 || ^7.3.1" }, "config": { "optimize-autoloader": true, From 9b77fa8a89ef9960b61426ef21b5d07f8bafb87e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kuba=20Wer=C5=82os?= Date: Mon, 18 Aug 2025 09:26:09 +0200 Subject: [PATCH 2/2] Supersimple --- .github/workflows/ci.yaml | 14 ++++---------- composer.json | 2 +- 2 files changed, 5 insertions(+), 11 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 4d5e78c..1620ca7 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -3,19 +3,13 @@ on: pull_request: ~ push: ~ jobs: - verify: - name: PHP ${{ matrix.php-version }} ${{ matrix.description }} + test: + name: PHP ${{ matrix.php-version }} strategy: fail-fast: false matrix: include: - php-version: '7.4' - - php-version: '8.0' - - php-version: '8.1' - - php-version: '8.2' - - php-version: '8.3' - - php-version: '8.4' - - php-version: '8.5' runs-on: ubuntu-latest steps: - uses: actions/checkout@v5 @@ -23,6 +17,6 @@ jobs: - uses: shivammathur/setup-php@v2 with: php-version: ${{ matrix.php-version }} - extensions: none, ctype, curl, dom, json, mbstring, opcache, openssl, simplexml, tokenizer, xml, xmlwriter + extensions: none - - run: ./vendor/bin/simple-phpunit + - run: php --version diff --git a/composer.json b/composer.json index 986f470..32f29ef 100644 --- a/composer.json +++ b/composer.json @@ -17,7 +17,7 @@ "php": "^5.6 || ^7.0 || ^8.0" }, "require-dev": { - "symfony/phpunit-bridge": "^5.1 || ^7.3.1" + "symfony/phpunit-bridge": "^5.1" }, "config": { "optimize-autoloader": true,