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

Commit f5d69c2

Browse files
committed
use shared github action
1 parent c5028eb commit f5d69c2

File tree

4 files changed

+4
-99
lines changed

4 files changed

+4
-99
lines changed

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

Lines changed: 3 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -24,46 +24,6 @@ jobs:
2424
if [ ! -e .git/refs/heads/master ]; then
2525
git branch master HEAD
2626
fi
27-
- name: Install Composer
28-
run: .github/workflows/install-composer.sh --install-dir=${{runner.temp}}
29-
- name: Install HHVM (apt)
30-
if: matrix.os == 'ubuntu'
31-
run: |
32-
set -ex
33-
export DEBIAN_FRONTEND=noninteractive
34-
sudo add-apt-repository https://dl.hhvm.com/ubuntu
35-
if [ "${{matrix.hhvm}}" = "nightly" ]; then
36-
sudo apt-get remove hhvm
37-
sudo apt-get install -y hhvm-nightly
38-
elif [ "${{matrix.hhvm}}" = "latest" ]; then
39-
sudo apt-get install -y hhvm
40-
else
41-
sudo add-apt-repository --remove https://dl.hhvm.com/ubuntu
42-
sudo apt-get remove hhvm
43-
DISTRO=$(lsb_release --codename --short)
44-
sudo add-apt-repository \
45-
"deb https://dl.hhvm.com/ubuntu ${DISTRO}-${{matrix.hhvm}} main"
46-
sudo apt-get install -y hhvm
47-
fi
48-
- name: Install HHVM (brew)
49-
if: matrix.os == 'macos'
50-
run: |
51-
brew tap hhvm/hhvm
52-
if [ "${{matrix.hhvm}}" = "latest" ]; then
53-
brew install hhvm
54-
else
55-
brew install hhvm-${{matrix.hhvm}}
56-
fi
57-
- name: Inspect HHVM and Hack versions
58-
run: |
59-
hhvm --version
60-
hh_client --version
61-
- name: Install project dependencies
62-
run: php ${{runner.temp}}/composer.phar install
63-
- name: Typecheck
64-
run: hh_client
65-
- name: Run tests
66-
run: vendor/bin/hacktest tests
67-
- name: Run lint
68-
if: matrix.hhvm != 'nightly'
69-
run: vendor/bin/hhast-lint
27+
- uses: hhvm/actions/hack-lint-test@master
28+
with:
29+
hhvm: ${{matrix.hhvm}}

.github/workflows/hhvm.gpg.key

Lines changed: 0 additions & 36 deletions
This file was deleted.

.github/workflows/install-composer.sh

Lines changed: 0 additions & 19 deletions
This file was deleted.

.hhconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ disallow_stringish_magic = true
99
user_attributes=
1010
error_php_lambdas = true
1111
allowed_decl_fixme_codes=2053,4045
12-
allowed_fixme_codes_strict=2011,2049,2050,2053,4027,4045,4106,4107,4108,4110,4128,4135,4188,4240,4323
12+
allowed_fixme_codes_strict=2011,2049,2050,2053,4027,4045,4106,4107,4108,4110,4128,4135,4188,4240,4323,4390,4401

0 commit comments

Comments
 (0)