Skip to content

Commit be54df8

Browse files
authored
Add CI workflow for PHP project
1 parent 326cf79 commit be54df8

1 file changed

Lines changed: 31 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
pull_request:
6+
7+
jobs:
8+
test:
9+
runs-on: ubuntu-latest
10+
11+
steps:
12+
- name: Checkout
13+
uses: actions/checkout@v4
14+
15+
- name: Setup PHP
16+
uses: shivammathur/setup-php@v2
17+
with:
18+
php-version: 8.2
19+
tools: composer:v2
20+
21+
- name: Validate composer.json
22+
run: composer validate --strict
23+
continue-on-error: true
24+
25+
- name: Install dependencies
26+
run: composer install --prefer-dist --no-progress --no-interaction
27+
continue-on-error: true
28+
29+
- name: PHP Syntax check
30+
run: find src -name "*.php" -exec php -l {} \;
31+
continue-on-error: true

0 commit comments

Comments
 (0)