Skip to content

Commit 1f53b42

Browse files
committed
ci: attempt to get valid CI results
1 parent 27d3fa7 commit 1f53b42

File tree

2 files changed

+40
-1
lines changed

2 files changed

+40
-1
lines changed

.github/workflows/static-analysis.yml

Lines changed: 33 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,36 @@ permissions:
1212

1313
jobs:
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+

.github/workflows/tests.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,13 @@ jobs:
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 }}"

0 commit comments

Comments
 (0)