File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : CI
2+
3+ on :
4+ push :
5+ branches : ["master"]
6+ pull_request :
7+ branches : ["master"]
8+
9+ permissions :
10+ contents : read
11+
12+ jobs :
13+ build :
14+
15+ runs-on : ubuntu-latest
16+
17+ steps :
18+ - name : Setup PHP
19+ uses : shivammathur/setup-php@v2
20+ with :
21+ php-version : ' 7.4'
22+
23+ - uses : actions/checkout@v3
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
39+
40+ - name : Run test suite
41+ run : composer run-script test
42+ env :
43+ CASPER_PHP_SDK_TEST_NODE_URL : " 136.243.187.84:7777"
Original file line number Diff line number Diff line change 2828 },
2929 "require-dev" : {
3030 "phpunit/phpunit" : " ^9"
31+ },
32+ "scripts" : {
33+ "test" : " php vendor/bin/phpunit tests"
3134 }
3235}
You can’t perform that action at this time.
0 commit comments