Skip to content

Commit ffd83f9

Browse files
committed
#4 Run PHPUnit on every push and PR
1 parent a90634a commit ffd83f9

File tree

2 files changed

+34
-0
lines changed

2 files changed

+34
-0
lines changed

.github/workflows/quality-checks.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Quality Checks
2+
3+
on:
4+
workflow_dispatch: {}
5+
6+
pull_request: {}
7+
push:
8+
branches:
9+
- master
10+
11+
concurrency:
12+
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
13+
cancel-in-progress: true
14+
15+
jobs:
16+
tests:
17+
name: Tests
18+
runs-on: ubuntu-latest
19+
timeout-minutes: 10
20+
21+
steps:
22+
- uses: actions/checkout@v3
23+
- uses: shivammathur/setup-php@v2
24+
with:
25+
php-version: 8.3
26+
coverage: none
27+
28+
- uses: ramsey/composer-install@v2
29+
30+
- name: Run PHPUnit
31+
run: composer run tests

composer.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,9 @@
3232
"ADR\\": "src/"
3333
}
3434
},
35+
"scripts": {
36+
"tests": "vendor/bin/phpunit"
37+
},
3538
"bin": [
3639
"bin/phpadr"
3740
]

0 commit comments

Comments
 (0)