Skip to content

Commit bb12e34

Browse files
committed
Add GitHub PHP workflow
1 parent 3e12e8b commit bb12e34

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

.github/workflows/php.yml

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# vim: set colorcolumn=:
2+
name: bnetdocs-web
3+
4+
on: [push]
5+
6+
jobs:
7+
build:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v1
11+
12+
- name: Update apt cache
13+
run: sudo apt-get update
14+
15+
- name: Install php 7.4
16+
run: sudo apt-get install php7.4-cli
17+
18+
- name: Validate composer.json and composer.lock
19+
run: composer validate
20+
21+
- name: Install composer/vendor dependencies
22+
run: composer install --prefer-dist --no-progress --no-suggest --ignore-platform-reqs
23+
24+
- name: Validate PHP syntax
25+
run: bash -c 'set -e;for file in $(find ./src -type f -regex .*\.php -print); do php -e -l -f "$file"; done'

0 commit comments

Comments
 (0)