Skip to content

Commit 4f0bc64

Browse files
committed
(fix): Use setup-php instead of Docker for unit tests
1 parent c3354ac commit 4f0bc64

1 file changed

Lines changed: 10 additions & 8 deletions

File tree

.github/workflows/tests.yml

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
11
name: Tests
22

33
on:
4-
push:
5-
branches: [main]
64
pull_request:
7-
branches: [main]
85

96
jobs:
107
unit:
@@ -15,10 +12,15 @@ jobs:
1512
- name: Checkout
1613
uses: actions/checkout@v4
1714

18-
- name: Build test image
19-
run: |
20-
docker build -t proxy-test --target test -f Dockerfile.test .
15+
- name: Setup PHP
16+
uses: shivammathur/setup-php@v2
17+
with:
18+
php-version: '8.4'
19+
extensions: swoole, redis, sockets
20+
tools: composer:v2
21+
22+
- name: Install dependencies
23+
run: composer install --prefer-dist --no-progress
2124

2225
- name: Run tests
23-
run: |
24-
docker run --rm proxy-test composer test
26+
run: composer test

0 commit comments

Comments
 (0)