@@ -13,55 +13,14 @@ jobs:
13
13
matrix :
14
14
os : [ ubuntu ]
15
15
hhvm :
16
- - ' 4.8 '
16
+ - ' 4.25 '
17
17
- latest
18
18
- nightly
19
19
runs-on : ${{matrix.os}}-latest
20
20
steps :
21
21
- uses : actions/checkout@v2
22
- - name : Install Composer
23
- run : .github/workflows/install-composer.sh --install-dir=${{runner.temp}}
24
- - name : Install HHVM (apt)
25
- if : matrix.os == 'ubuntu'
26
- run : |
27
- set -ex
28
- export DEBIAN_FRONTEND=noninteractive
29
- sudo apt-get update
30
- sudo apt-get install -y software-properties-common apt-transport-https
31
- sudo apt-key add .github/workflows/hhvm.gpg.key
32
- if [ "${{matrix.hhvm}}" = "nightly" ]; then
33
- sudo add-apt-repository https://dl.hhvm.com/ubuntu
34
- sudo apt-get install -y hhvm-nightly
35
- elif [ "${{matrix.hhvm}}" = "latest" ]; then
36
- sudo add-apt-repository https://dl.hhvm.com/ubuntu
37
- sudo apt-get install -y hhvm
38
- else
39
- DISTRO=$(lsb_release --codename --short)
40
- sudo add-apt-repository \
41
- "deb https://dl.hhvm.com/ubuntu ${DISTRO}-${{matrix.hhvm}} main"
42
- sudo apt-get install -y hhvm
43
- fi
44
- - name : Install HHVM (brew)
45
- if : matrix.os == 'macos'
46
- run : |
47
- brew tap hhvm/hhvm
48
- if [ "${{matrix.hhvm}}" = "latest" ]; then
49
- brew install hhvm
50
- else
51
- brew install hhvm-${{matrix.hhvm}}
52
- fi
53
- - name : Inspect HHVM and Hack versions
54
- run : |
55
- hhvm --version
56
- hh_client --version
57
22
- name : Create branch for version alias
58
23
run : git checkout -b CI_current_pull_request
59
- - name : Install project dependencies
60
- run : php ${{runner.temp}}/composer.phar install
61
- - name : Typecheck
62
- run : hh_client
63
- - name : Run tests
64
- run : vendor/bin/hacktest tests/
65
- - name : Run lint
66
- if : matrix.hhvm != 'nightly'
67
- run : vendor/bin/hhast-lint
24
+ - uses : hhvm/actions/hack-lint-test@master
25
+ with :
26
+ hhvm : ${{matrix.hhvm}}
0 commit comments