We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9b5d83f commit a29ff32Copy full SHA for a29ff32
1 file changed
.github/workflows/php.yml
@@ -0,0 +1,38 @@
1
+name: PHP Composer
2
+
3
+on:
4
+ push:
5
+ branches: [ "master" ]
6
+ pull_request:
7
8
9
+permissions:
10
+ contents: read
11
12
+jobs:
13
+ test:
14
+ runs-on: ubuntu-latest
15
16
+ container:
17
+ image: cylab/php:8.3
18
19
+ steps:
20
+ - uses: actions/checkout@v4
21
22
+ - name: Validate composer.json and composer.lock
23
+ run: composer validate --strict
24
25
+ - name: Cache Composer packages
26
+ id: composer-cache
27
+ uses: actions/cache@v3
28
+ with:
29
+ path: vendor
30
+ key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }}
31
+ restore-keys: |
32
+ ${{ runner.os }}-php-
33
34
+ - name: Install dependencies
35
+ run: composer install --prefer-dist --no-progress
36
37
+ - name: Run phpunit
38
+ run: ./vendor/bin/phpunit
0 commit comments