File tree Expand file tree Collapse file tree 2 files changed +44
-1
lines changed
Expand file tree Collapse file tree 2 files changed +44
-1
lines changed Original file line number Diff line number Diff line change 1+ name : Tests
2+
3+ on :
4+ push :
5+ branches : [ "master", "dev" ]
6+ pull_request :
7+ branches : [ "master", "dev" ]
8+
9+ permissions :
10+ contents : read
11+
12+ jobs :
13+ build :
14+
15+ runs-on : ubuntu-latest
16+
17+ steps :
18+ - uses : actions/checkout@v4
19+
20+ - name : Set up PHP
21+ uses : shivammathur/setup-php@v2
22+ with :
23+ php-version : 8.3
24+
25+ - name : Validate composer.json and composer.lock
26+ run : composer validate --strict
27+
28+ - name : Cache Composer packages
29+ id : composer-cache
30+ uses : actions/cache@v3
31+ with :
32+ path : vendor
33+ key : ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }}
34+ restore-keys : |
35+ ${{ runner.os }}-php-
36+
37+ - name : Install dependencies
38+ run : composer install --prefer-dist --no-progress --no-suggest
39+
40+ - name : Run test suite
41+ run : composer test
Original file line number Diff line number Diff line change 22 "name" : " naingaunglwin-dev/timetracker" ,
33 "description" : " A lightweight time tracker for php" ,
44 "minimum-stability" : " stable" ,
5- "version" : " 1.0.0" ,
65 "type" : " library" ,
76 "prefer-stable" : true ,
87 "license" : " MIT" ,
2322 },
2423 "require-dev" : {
2524 "phpunit/phpunit" : " ^11.5"
25+ },
26+ "scripts" : {
27+ "test" : " vendor/bin/phpunit tests"
2628 }
2729}
You can’t perform that action at this time.
0 commit comments