We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a236184 + 9fbb77d commit c7ea9fdCopy full SHA for c7ea9fd
.github/workflows/php.yml
@@ -0,0 +1,36 @@
1
+name: PHP Composer
2
+
3
+on:
4
+ push:
5
+ branches: [ "main" ]
6
+ pull_request:
7
8
9
+permissions:
10
+ contents: read
11
12
+jobs:
13
+ build:
14
15
+ runs-on: ubuntu-latest
16
17
+ steps:
18
+ - uses: actions/checkout@v4
19
20
+ - name: Cache Composer packages
21
+ id: composer-cache
22
+ uses: actions/cache@v3
23
+ with:
24
+ path: vendor
25
+ key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }}
26
+ restore-keys: |
27
+ ${{ runner.os }}-php-
28
29
+ - name: Install dependencies
30
+ run: composer install --prefer-dist --no-progress
31
32
+ # Add a test script to composer.json, for instance: "test": "vendor/bin/phpunit"
33
+ # Docs: https://getcomposer.org/doc/articles/scripts.md
34
35
+ - name: Run test suite
36
+ run: php vendor/bin/unitary
0 commit comments