Skip to content

Commit c6837cc

Browse files
committed
Merge branch 'master' of github.com:tdebatty/php-language-processing
2 parents 8eefda1 + a29ff32 commit c6837cc

1 file changed

Lines changed: 38 additions & 0 deletions

File tree

.github/workflows/php.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: PHP Composer
2+
3+
on:
4+
push:
5+
branches: [ "master" ]
6+
pull_request:
7+
branches: [ "master" ]
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

Comments
 (0)