-
Notifications
You must be signed in to change notification settings - Fork 5
44 lines (30 loc) · 918 Bytes
/
Copy pathphp.yml
File metadata and controls
44 lines (30 loc) · 918 Bytes
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: PHP Composer
on:
push:
pull_request:
types: [assigned, opened, synchronize, reopened]
schedule:
- cron: '34 3 * * *'
jobs:
build:
runs-on: ubuntu-24.04
strategy:
matrix:
php-versions: ['8.1', '8.2']
name: PHP ${{ matrix.php-versions }} Test
steps:
- uses: actions/checkout@v5
- name: Setup PHP ${{ matrix.php-versions }}
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
- name: Check PHP Version
run: php -v
- name: Install Pandoc
run: sudo apt-get install pandoc
- name: Install Composer and Dependencies
run: curl -s http://getcomposer.org/installer | php && php composer.phar self-update && php composer.phar install
- name: Tests
run: php composer.phar test
- name: Coding Style
run: php composer.phar cs-check