Skip to content

Commit 9b63dff

Browse files
committed
Adding csfixer and workflow
1 parent d8f3e89 commit 9b63dff

File tree

3 files changed

+1149
-39
lines changed

3 files changed

+1149
-39
lines changed

.github/workflows/php.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: PHP Composer
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
pull_request:
7+
branches: [ main ]
8+
9+
jobs:
10+
build:
11+
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- uses: actions/checkout@v2
16+
17+
- name: Validate composer.json and composer.lock
18+
run: composer validate
19+
20+
- name: Install dependencies
21+
run: composer install --prefer-dist --no-progress
22+
23+
- name: Run test suite
24+
run: composer test
25+
26+
- name: Run php-cs-fixer
27+
run: composer csfix

composer.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@
1414
"minicli/minicli": "^3.2"
1515
},
1616
"require-dev": {
17-
"pestphp/pest": "^2.4"
17+
"pestphp/pest": "^2.4",
18+
"friendsofphp/php-cs-fixer": "^3.16"
1819
},
1920
"scripts": {
2021
"test" : ["pest"],

0 commit comments

Comments
 (0)