-
-
Notifications
You must be signed in to change notification settings - Fork 1
38 lines (27 loc) · 816 Bytes
/
php.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
name: PHP Workflow
on:
push:
branches: [ "main", "development" ]
pull_request:
branches: [ "main", "development" ]
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: shivammathur/setup-php@15c43e89cdef867065b0213be354c2841860869e
with:
php-version: '7.4'
- uses: actions/checkout@v4
- name: Validate composer.json and composer.lock
run: composer validate --strict
- name: Install Dependencies
run: composer install --prefer-dist --no-progress
- name: Run Unit Tests
run: composer run-script test-unit
- name: Run Feature Tests
run: composer run-script test-feature
continue-on-error: true
- name: Static Analyse
run: composer run-script analyse