File tree Expand file tree Collapse file tree 1 file changed +21
-10
lines changed Expand file tree Collapse file tree 1 file changed +21
-10
lines changed Original file line number Diff line number Diff line change @@ -3,20 +3,31 @@ name: CI
33on :
44 push :
55 pull_request :
6- types :
6+ types :
77 - opened
88 - synchronize
99
1010jobs :
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
You can’t perform that action at this time.
0 commit comments