From 86ef2bdf000f5fdac4db3ee1226c42bb28e54c24 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?TS=5F=E7=80=A7=E6=BE=A4=20=E5=85=85=E6=B5=A9=EF=BC=88Takiz?= =?UTF-8?q?awa=20Mitsuhiro=EF=BC=89?= Date: Mon, 17 Nov 2025 17:27:04 +0900 Subject: [PATCH 1/2] Update composer.json dependencies Replaced wikimedia/ip-set with wikimedia/ip-utils in dependencies. --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 1f90592..3276da1 100644 --- a/composer.json +++ b/composer.json @@ -5,7 +5,7 @@ "require": { "php": ">=8.1", "cakephp/cakephp": "^5.0.1", - "wikimedia/ip-set": "^2.1" + "wikimedia/ip-utils": "5.0.0" }, "require-dev": { "phpunit/phpunit": "^10.1.0", From 7dceb7606e4b25802533191e9ab0e7328abae55c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?TS=5F=E7=80=A7=E6=BE=A4=20=E5=85=85=E6=B5=A9=EF=BC=88Takiz?= =?UTF-8?q?awa=20Mitsuhiro=EF=BC=89?= Date: Tue, 18 Nov 2025 10:09:41 +0900 Subject: [PATCH 2/2] Add CI workflow for testing and coding standards MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit cs, stan は無効化 --- .github/workflows/ci.yml | 83 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 83 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..b31e42a --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,83 @@ +name: CI + +on: + push + +permissions: + contents: read + +jobs: + testsuite: + runs-on: ubuntu-22.04 + strategy: + fail-fast: false + + steps: + - uses: actions/checkout@v4 + + - name: Setup Service + run: | + sudo service mysql start + mysql -h 127.0.0.1 -u root -proot -e 'CREATE DATABASE cakephp;' + + - name: Setup PHP + uses: shivammathur/setup-php@v2 + with: + php-version: 8.3 + extensions: mbstring, intl, apcu, sqlite, pdo_sqlite, pdo_mysql + ini-values: apc.enable_cli = 1 + + - name: Get composer cache directory + id: composer-cache + run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT + + - name: Cache composer dependencies + uses: actions/cache@v4 + with: + path: ${{ steps.composer-cache.outputs.dir }} + key: ${{ runner.os }}-composer-${{ hashFiles('composer.json') }} + + - name: composer install + run: | + composer install + + - name: Run PHPUnit + run: | + export DB_URL='mysql://root:root@127.0.0.1/cakephp' + vendor/bin/phpunit + + coding-standard: + if: false + name: Coding Standard & Static Analysis + runs-on: ubuntu-22.04 + + steps: + - uses: actions/checkout@v4 + + - name: Setup PHP + uses: shivammathur/setup-php@v2 + with: + php-version: 8.3 + extensions: mbstring, intl, apcu, sqlite, pdo_sqlite, pdo_mysql + ini-values: apc.enable_cli = 1 + + - name: Get composer cache directory + id: composer-cache + run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT + + - name: Cache composer dependencies + uses: actions/cache@v4 + with: + path: ${{ steps.composer-cache.outputs.dir }} + key: ${{ runner.os }}-composer-${{ hashFiles('composer.json') }} + + - name: composer install + run: | + composer install + + - name: Run PHP CodeSniffer + run: ./vendor/bin/phpcs --colors -p + + - name: Run phpstan + if: success() || failure() + run: ./vendor/bin/phpstan analyze