Skip to content

Commit 024ac5d

Browse files
authored
Merge pull request #1 from librarianphp/add-tests
Added basic tests
2 parents 6172038 + 24b8fef commit 024ac5d

File tree

7 files changed

+4848
-3
lines changed

7 files changed

+4848
-3
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: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,20 @@
1111
}
1212
},
1313
"require": {
14-
"minicli/minicli": "^3.0"
14+
"minicli/minicli": "^3.2"
15+
},
16+
"require-dev": {
17+
"pestphp/pest": "^2.4",
18+
"friendsofphp/php-cs-fixer": "^3.16"
19+
},
20+
"scripts": {
21+
"test" : ["pest"],
22+
"csfix": ["php-cs-fixer fix"]
23+
},
24+
25+
"config": {
26+
"allow-plugins": {
27+
"pestphp/pest-plugin": true
28+
}
1529
}
1630
}

0 commit comments

Comments
 (0)