Skip to content

Commit 370053b

Browse files
authored
Update ci.yml
1 parent d59afa4 commit 370053b

File tree

1 file changed

+21
-10
lines changed

1 file changed

+21
-10
lines changed

.github/workflows/ci.yml

Lines changed: 21 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,31 @@ name: CI
33
on:
44
push:
55
pull_request:
6-
types:
6+
types:
77
- opened
88
- synchronize
99

1010
jobs:
1111
build-test:
1212
runs-on: ubuntu-24.04
13+
1314
steps:
14-
- uses: actions/checkout@v4
15-
- name: Cache Composer dependencies
16-
uses: actions/cache@v4
17-
with:
18-
path: /tmp/composer-cache
19-
key: ${{ runner.os }}-${{ hashFiles('**/composer.lock') }}
20-
- uses: php-actions/composer@v6
21-
- name: PHPUnit tests
22-
run: ./vendor/bin/phpunit
15+
- uses: actions/checkout@v4
16+
17+
- name: Allow git to trust /app
18+
run: git config --global --add safe.directory /app
19+
20+
- name: Configure composer authentication
21+
run: composer config --global github-oauth.github.com ${{ secrets.GITHUB_TOKEN }}
22+
23+
- name: Cache Composer dependencies
24+
uses: actions/cache@v4
25+
with:
26+
path: /tmp/composer-cache
27+
key: ${{ runner.os }}-${{ hashFiles('**/composer.lock') }}
28+
29+
- name: Install dependencies
30+
uses: php-actions/composer@v6
31+
32+
- name: PHPUnit tests
33+
run: ./vendor/bin/phpunit

0 commit comments

Comments
 (0)