forked from gentlero/bitbucket-api
-
Notifications
You must be signed in to change notification settings - Fork 2
41 lines (34 loc) · 1.32 KB
/
ci.yaml
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
name: "Continuous Integration"
on:
pull_request:
push:
jobs:
phpunit:
name: Test Suite
runs-on: ubuntu-latest
strategy:
matrix:
php: [7.1, 7.2, 7.3, 7.4, 8.0, 8.1, 8.2]
steps:
- uses: actions/checkout@v2
- name: Install PHP ${{ matrix.php }}
uses: "shivammathur/setup-php@v2"
with:
coverage: "none"
ini-values: "memory_limit=-1, phar.readonly=0"
php-version: ${{ matrix.php }}
- name: "Determine composer cache directory"
id: "determine-composer-cache-directory"
run: "echo \"::set-output name=directory::$(composer config cache-dir)\""
- name: "Cache dependencies installed with composer"
uses: "actions/cache@v1"
with:
path: "${{ steps.determine-composer-cache-directory.outputs.directory }}"
key: "php-${{ matrix.php }}-ci"
restore-keys: "php-${{ matrix.php }}"
- name: "Install dependencies"
run: composer update --no-progress -o --prefer-dist
- name: "Run PHPUnit"
run: ./vendor/bin/phpunit
- name: "Run PHPStan"
run: ./vendor/bin/phpstan analyze