File tree Expand file tree Collapse file tree 2 files changed +40
-1
lines changed
Expand file tree Collapse file tree 2 files changed +40
-1
lines changed Original file line number Diff line number Diff line change @@ -12,4 +12,36 @@ permissions:
1212
1313jobs :
1414 tests :
15- uses : laravel/.github/.github/workflows/static-analysis.yml@main
15+ runs-on : ubuntu-latest
16+
17+ name : Static Analysis
18+
19+ steps :
20+ - name : Checkout code
21+ uses : actions/checkout@v4
22+
23+ - name : Setup PHP
24+ uses : shivammathur/setup-php@v2
25+ with :
26+ php-version : 8.2
27+ extensions : swoole, relay
28+ tools : composer:v2
29+ coverage : none
30+
31+ - name : Setup SSH Keys
32+ run : |
33+ mkdir -p ~/.ssh
34+ echo "${{ secrets.MCP_DEPLOY_KEY }}" > ~/.ssh/id_rsa
35+ chmod 600 ~/.ssh/id_rsa
36+ ssh-keyscan github.com >> ~/.ssh/known_hosts
37+
38+ - name : Install dependencies
39+ uses : nick-fields/retry@v3
40+ with :
41+ timeout_minutes : 5
42+ max_attempts : 5
43+ command : composer update --prefer-stable --prefer-dist --no-interaction --no-progress
44+
45+ - name : Execute type checking
46+ run : vendor/bin/phpstan --verbose
47+
Original file line number Diff line number Diff line change 3737 tools : composer:v2
3838 coverage : none
3939
40+ - name : Setup SSH Keys
41+ run : |
42+ mkdir -p ~/.ssh
43+ echo "${{ secrets.MCP_DEPLOY_KEY }}" > ~/.ssh/id_rsa
44+ chmod 600 ~/.ssh/id_rsa
45+ ssh-keyscan github.com >> ~/.ssh/known_hosts
46+
4047 - name : Install dependencies
4148 run : |
4249 composer update --prefer-dist --no-interaction --no-progress --with="illuminate/contracts:^${{ matrix.laravel }}"
You can’t perform that action at this time.
0 commit comments