We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 424e625 commit e12f7f8Copy full SHA for e12f7f8
1 file changed
.github/workflows/ci.yml
@@ -0,0 +1,31 @@
1
+name: PHP CI Pipeline
2
+
3
+# Trigger the workflow on push or pull request to the main branch
4
+on:
5
+ push:
6
+ branches:
7
+ - main
8
+ pull_request:
9
10
11
12
+# Jobs to run
13
+jobs:
14
+ test:
15
+ name: Run PHP Checks
16
+ runs-on: ubuntu-latest
17
18
+ steps:
19
+ # Check out the repository
20
+ - name: Checkout code
21
+ uses: actions/checkout@v3
22
23
+ # Set up PHP
24
+ - name: Set up PHP
25
+ uses: shivammathur/setup-php@v2
26
+ with:
27
+ php-version: '8.2' # Use the PHP version your project requires
28
29
+ # Lint PHP files (check for syntax errors)
30
+ - name: Lint PHP files
31
+ run: find . -type f -name '*.php' -exec php -l {} \;
0 commit comments