We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ad1ce21 commit 2402712Copy full SHA for 2402712
1 file changed
.github/workflows/php.yml
@@ -0,0 +1,29 @@
1
+name: PHP Composer
2
+
3
+on:
4
+ push:
5
+ branches: [ master ]
6
+ pull_request:
7
8
9
+jobs:
10
+ build:
11
+ runs-on: ubuntu-20.04
12
+ strategy:
13
+ matrix:
14
+ php-versions: ['7.0', '7.3', '7.4']
15
+ steps:
16
+ - name: Checkout
17
+ uses: actions/checkout@v2
18
+ - name: Install PHP
19
+ uses: shivammathur/setup-php@v2
20
+ with:
21
+ php-version: ${{ matrix.php-versions }}
22
+ - name: Validate composer.json and composer.lock
23
+ run: composer validate
24
+ - name: Install dependencies
25
+ run: composer install --prefer-dist --no-progress
26
+ - name: Run PHPCS
27
+ run: composer run-script lint
28
+ - name: Run PHPUnit
29
+ run: composer run-script test
0 commit comments