aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows/php.yml
blob: defd0448bf52d86f1063df0490118f6ee14492aa (plain)
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
name: build

on:
    push:
        branches: [ master ]
    pull_request:
        branches: [ master ]

jobs:
    php-build:

        runs-on: ubuntu-latest

        steps:
            -   uses: actions/checkout@v2

            -   name: Validate composer.json and composer.lock
                run: composer validate

            -   name: Install dependencies
                run: composer install --prefer-dist --no-progress --no-suggest

            # Add a test script to composer.json, for instance: "test": "vendor/bin/phpunit"
            # Docs: https://getcomposer.org/doc/articles/scripts.md

            -   name: Run test suite
                run: make check -k