-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (27 loc) · 979 Bytes
/
validate.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
name: Build Status
on:
pull_request:
branches: [master]
jobs:
validate:
runs-on: ubuntu-latest
steps:
- name: Validate Pull Request Title
uses: amannn/action-semantic-pull-request@v5
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Validate commit messages
uses: wagoid/commitlint-github-action@v6
- name: Setup PHP with PECL extension
uses: shivammathur/setup-php@v2
with:
php-version: "8.2"
# Taken from https://github.com/kirschbaum-development/laravel-test-runner-container/blob/master/8.2/Dockerfile
extensions: mbstring, mysql, xml, xsl, zip, curl, bcmath, intl, bz2
- name: Install composer dependencies
run: composer install -q --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist
- name: Validate PHP code
run: composer verify