-
Notifications
You must be signed in to change notification settings - Fork 18
44 lines (44 loc) · 1.37 KB
/
main.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
44
name: CI Tests
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
php-versions: ['5.x', '7.x', '8.x']
name: Testing PHP ${{ matrix.php-versions }}
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Install PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
- name: Check PHP Version
run: php -v
- name: Install Dependencies for PHP ${{ matrix.php-versions }}
run: composer install -q --no-ansi --no-interaction --no-scripts --no-suggest --no-progress --prefer-dist
- name: Execute tests against PHP ${{ matrix.php-versions }}
run: composer test
typecheck:
runs-on: ubuntu-latest
name: TypeChecks against PSALM
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Install PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.x'
- name: Check PHP Version
run: php -v
- name: Install Dependencies
run: composer install -q --no-ansi --no-interaction --no-scripts --no-suggest --no-progress --prefer-dist
- name: Downloading
run: wget https://github.com/vimeo/psalm/releases/download/5.9.0/psalm.phar
- name: Typechecking
run: php psalm.phar