Skip to content

Commit 03d7c34

Browse files
committed
Add github workflow for hhvm
Running tests inside a hhvm version 3.30.0 container. This was the latest version og hhvm providing support for php as described here: https://hhvm.com/blog/2018/09/12/end-of-php-support-future-of-hack.html
1 parent b5d162b commit 03d7c34

File tree

1 file changed

+45
-0
lines changed

1 file changed

+45
-0
lines changed

.github/workflows/hhvm.yml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
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

0 commit comments

Comments
 (0)