-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (38 loc) · 1.04 KB
/
php.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
41
42
43
name: PHP
on:
push:
branches: [ dev, main, feature/*, bugfix/* ]
pull_request:
branches: [ main ]
jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: true
matrix:
php_version: [ '8.1', '8.2', '8.3' ]
steps:
- uses: actions/checkout@v2
- uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php_version }}
coverage: none
- run: composer install --ansi
working-directory: ${{ matrix.directory }}
- name: Prepare tests
run: composer create-project laravel/laravel sample-apps/laravel-app
- name: Test
run: |
composer install
vendor/bin/phpunit --configuration=phpunit.xml
- name: Test Bin
run: |
php larased
- name: Install Jq
run: sudo apt-get install -y jq
- name: Getting version right
id: package-version
run: |
output=$(jq -rc '.version' composer.json)
echo "::set-output name=PACKAGE_VERSION::$output"
shell: bash