File tree Expand file tree Collapse file tree 1 file changed +45
-0
lines changed
Expand file tree Collapse file tree 1 file changed +45
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Unit Tests HHVM
2+
3+ on :
4+ push :
5+ pull_request :
6+
7+ jobs :
8+ testing :
9+ runs-on : ubuntu-latest
10+
11+ strategy :
12+ matrix :
13+ hhvm : ['hhvm/hhvm:3.30.0']
14+
15+ container : ${{ matrix.hhvm }}
16+
17+ steps :
18+ - name : Install composer
19+ shell : bash
20+ run : |
21+ php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
22+ php -r "if (hash_file('sha384', 'composer-setup.php') === '55ce33d7678c5a611085589f1f3ddf8b3c52d662cd01d4ba75c0ee0459970c2200a51f492d557530c71c15d8dba01eae') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;"
23+ php composer-setup.php
24+ php -r "unlink('composer-setup.php');"
25+ mv composer.phar /bin/composer
26+
27+ - uses : actions/checkout@v2
28+
29+ - name : Validate composer.json and composer.lock
30+ run : composer validate --strict
31+
32+ - name : Cache Composer packages
33+ id : composer-cache
34+ uses : actions/cache@v3
35+ with :
36+ path : vendor
37+ key : ${{ runner.os }}-${{ matrix.hhvm }}-php-${{ hashFiles('**/composer.lock') }}
38+ restore-keys : |
39+ ${{ runner.os }}-${{ matrix.hhvm }}-php-
40+
41+ - name : Install dependencies
42+ run : composer install --prefer-dist --no-progress
43+
44+ - name : Run test suite
45+ run : hhvm vendor/bin/phpunit
You can’t perform that action at this time.
0 commit comments