Skip to content

Commit a5b9d39

Browse files
committed
Add GitHub Actions configuration
1 parent a40dab3 commit a5b9d39

File tree

2 files changed

+23
-0
lines changed

2 files changed

+23
-0
lines changed

.github/workflows/php.yml

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

composer.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@
1515
}
1616
],
1717
"license": "MIT",
18+
"scripts": {
19+
"test": "vendor/bin/phpunit"
20+
},
1821
"require": {
1922
"illuminate/support": "^6.0",
2023
"illuminate/container": "^6.0",

0 commit comments

Comments
 (0)