Skip to content

Commit 6a9cb7e

Browse files
kornrunnerclaude
andcommitted
Use Docker container in GitHub Actions workflow
Switch from setup-php action to using php:8.3-cli container directly. This runs all tests inside a Docker container instead of installing PHP on the host machine. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
1 parent b099ead commit 6a9cb7e

File tree

1 file changed

+12
-6
lines changed

1 file changed

+12
-6
lines changed

.github/workflows/run-tests.yml

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,17 +19,23 @@ jobs:
1919
tests:
2020
name: PHPUnit Tests
2121
runs-on: ubuntu-latest
22+
container:
23+
image: php:8.3-cli
24+
options: --user root
2225

2326
steps:
2427
- name: Checkout code
2528
uses: actions/checkout@v4
2629

27-
- name: Setup PHP
28-
uses: shivammathur/setup-php@v2
29-
with:
30-
php-version: '8.3'
31-
extensions: curl
32-
coverage: none
30+
- name: Install system dependencies
31+
run: |
32+
apt-get update
33+
apt-get install -y git unzip libcurl4-openssl-dev
34+
docker-php-ext-install curl
35+
36+
- name: Install Composer
37+
run: |
38+
curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
3339
3440
- name: Install dependencies
3541
run: composer install --no-interaction --prefer-dist

0 commit comments

Comments
 (0)