Skip to content

Commit f59df06

Browse files
uidev1116claude
andcommitted
ci: run lint on the runner with setup-php (fix checkout@v7 in container)
コンテナ(php:8.5)内では actions/checkout@v7 の Node.js 24 が無く解決失敗していた。container をやめ ubuntu-latest + shivammathur/setup-php で実行するよう変更。 Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent 2b6dc37 commit f59df06

1 file changed

Lines changed: 11 additions & 21 deletions

File tree

.github/workflows/ci.yaml

Lines changed: 11 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -3,30 +3,20 @@ name: CI
33
on: [push, pull_request]
44

55
jobs:
6-
phpcs:
6+
lint:
77
name: PHP CodeSniffer
88
runs-on: ubuntu-latest
9-
10-
container:
11-
image: php:8.5
12-
139
steps:
14-
- name: Checkout code
15-
uses: actions/checkout@v7
16-
17-
- name: Install system dependencies
18-
run: |
19-
apt-get update && apt-get install -y unzip git
10+
- uses: actions/checkout@v7
2011

21-
- name: Install Composer
22-
run: |
23-
curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
12+
- name: Set up PHP
13+
uses: shivammathur/setup-php@v2
14+
with:
15+
php-version: '8.5'
16+
tools: composer
2417

25-
- name: Composer Install
26-
run: |
27-
export COMPOSER_ALLOW_SUPERUSER=1
28-
composer install --no-progress --prefer-dist
18+
- name: Install dependencies
19+
run: composer install --no-progress --prefer-dist
2920

30-
- name: Run PHP CodeSniffer
31-
run: |
32-
composer lint
21+
- name: Coding standards (PHP_CodeSniffer + PHPCompatibility)
22+
run: composer lint

0 commit comments

Comments
 (0)