Skip to content
This repository was archived by the owner on Jul 1, 2023. It is now read-only.

Commit 8cad4a3

Browse files
jjergusfacebook-github-bot
authored andcommitted
use shared github action (#32)
Summary: Pull Request resolved: #32 Reviewed By: fredemmott Differential Revision: D25877123 Pulled By: jjergus fbshipit-source-id: 299546022684622aabaaf906551ad112d8dd51e2
1 parent 69cc42d commit 8cad4a3

File tree

2 files changed

+5
-46
lines changed

2 files changed

+5
-46
lines changed

.github/workflows/build-and-test.yml

+4-45
Original file line numberDiff line numberDiff line change
@@ -13,55 +13,14 @@ jobs:
1313
matrix:
1414
os: [ ubuntu ]
1515
hhvm:
16-
- '4.8'
16+
- '4.25'
1717
- latest
1818
- nightly
1919
runs-on: ${{matrix.os}}-latest
2020
steps:
2121
- 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
5722
- name: Create branch for version alias
5823
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}}

composer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
}
99
},
1010
"require": {
11-
"hhvm": "^4.8",
11+
"hhvm": "^4.25",
1212
"hhvm/hsl": "^4.0"
1313
},
1414
"require-dev": {

0 commit comments

Comments
 (0)