Skip to content

Commit 9060cbd

Browse files
Merge branch 'Update-To-Github-Actions' of github.com:Staffbase/plugins-sdk-php into Update-To-Github-Actions
2 parents 342c773 + 4e3fe3e commit 9060cbd

1 file changed

Lines changed: 20 additions & 22 deletions

File tree

.github/workflows/php.yml

Lines changed: 20 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -7,28 +7,26 @@ on:
77
branches: [ master ]
88

99
jobs:
10-
build:
11-
12-
runs-on: ubuntu-latest
13-
10+
run:
11+
runs-on: ${{ matrix.operating-system }}
12+
strategy:
13+
matrix:
14+
operating-system: ['ubuntu-latest', 'windows-latest', 'macos-latest']
15+
php-versions: ['7.3', '7.4', '8.0']
16+
phpunit-versions: ['latest']
17+
include:
18+
- operating-system: 'ubuntu-latest'
19+
php-versions: '7.4'
20+
phpunit-versions: '9.0.0'
1421
steps:
15-
- uses: actions/checkout@v2
22+
- name: Checkout
23+
uses: actions/checkout@v2
1624

17-
- name: Validate composer.json and composer.lock
18-
run: composer validate
19-
20-
- name: Cache Composer packages
21-
id: composer-cache
22-
uses: actions/cache@v2
25+
- name: Setup PHP
26+
uses: shivammathur/setup-php@v2
2327
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-
if: steps.composer-cache.outputs.cache-hit != 'true'
31-
run: composer update --prefer-dist --no-progress
32-
33-
- name: Run tests
34-
run: composer test
28+
php-version: ${{ matrix.php-versions }}
29+
extensions: mbstring, intl
30+
ini-values: post_max_size=256M, max_execution_time=180
31+
coverage: none
32+
tools: php-cs-fixer, phpunit:${{ matrix.phpunit-versions }}

0 commit comments

Comments
 (0)