-
Notifications
You must be signed in to change notification settings - Fork 1
40 lines (32 loc) · 923 Bytes
/
ci-workflow.yml
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
name: CI
on:
- push
- pull_request
jobs:
php_matrix:
runs-on: ubuntu-latest
strategy:
matrix:
version: [7.4, 8.3]
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.version }}
extensions: mbstring, intl, sockets
coverage: xdebug
tools: composer, prestissimo
# tools: phpunit, composer, prestissimo, php-cs-fixer, phpstan
- run: composer install
- name: Start SolrCloud
run: docker-compose up -d
- name: Sleep a few seconds to wait for Solr to be ready
uses: jakejarvis/wait-action@master
with:
time: "10s"
- name: PHPUnit
run: ./vendor/bin/phpunit --testdox --colors=always
- name: PHPStan
run: ./vendor/bin/phpstan analyse --no-progress