Skip to content

Commit d177e57

Browse files
committed
Bootstrapping tests
1 parent b6ebb39 commit d177e57

File tree

9 files changed

+4863
-41
lines changed

9 files changed

+4863
-41
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: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,18 @@
1313
"require": {
1414
"minicli/minicli": "^3.0",
1515
"minicli/stencil": "^0.1.1"
16+
},
17+
"require-dev": {
18+
"pestphp/pest": "^2.4",
19+
"friendsofphp/php-cs-fixer": "^3.16"
20+
},
21+
"scripts": {
22+
"test" : ["pest"],
23+
"csfix": ["php-cs-fixer fix"]
24+
},
25+
"config": {
26+
"allow-plugins": {
27+
"pestphp/pest-plugin": true
28+
}
1629
}
1730
}

0 commit comments

Comments
 (0)