-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (39 loc) · 1.06 KB
/
php.yml
File metadata and controls
47 lines (39 loc) · 1.06 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
name: Skeleton CI
on:
push:
branches: [ 'master' ]
pull_request:
branches: [ 'master' ]
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Install PHP
uses: shivammathur/setup-php@v2
with:
coverage: none
php-version: 8.4
- name: Cache Composer packages
id: composer-cache
uses: actions/cache@v3
with:
php_version: 8.4
path: vendor
key: ${{ runner.os }}
restore-keys: |
${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }}
- name: Test tools install
run: |
cd tests/tools/psalm; composer install; cd ../../..;
cd tests/tools/phpstan; composer install; cd ../../..;
cd tests/tools/php-cs-fixer; composer install; cd ../../..;
- name: Composer install
uses: ramsey/composer-install@v2
with:
composer-options: --prefer-dist --no-progress --no-cache
- name: Validate composer
run: composer test-all