forked from kafene/netscape-bookmark-parser
-
Notifications
You must be signed in to change notification settings - Fork 10
45 lines (36 loc) · 1.04 KB
/
php.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
42
43
44
45
name: PHP CI
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
php:
name: PHP project (PHP ${{ matrix.php-versions }})
runs-on: ubuntu-latest
strategy:
fail-fast: true
matrix:
php-versions: ['7.1', '7.2', '7.3', '7.4', '8.0', '8.1']
steps:
# Setup Github actions
# https://github.com/actions/checkout (official)
- name: Checkout
uses: actions/checkout@v2
# Setup PHP
# https://github.com/shivammathur/setup-php (community)
- name: Setup PHP, extensions and composer with shivammathur/setup-php
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
tools: composer
- name: Check PHP Version
run: php -v
- name: Install Project
run: make install
- name: Check for code quality errors
run: make lint
- name: Run Unit tests
run: make tests