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

Commit

Permalink
use shared github action
Browse files Browse the repository at this point in the history
  • Loading branch information
jjergus committed Jan 22, 2021
1 parent edae1a4 commit e09958e
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 119 deletions.
47 changes: 3 additions & 44 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,49 +19,8 @@ jobs:
runs-on: ${{matrix.os}}-latest
steps:
- uses: actions/checkout@v2
- name: Install Composer
run: .github/workflows/install-composer.sh --install-dir=${{runner.temp}}
- name: Install HHVM (apt)
if: matrix.os == 'ubuntu'
run: |
set -ex
export DEBIAN_FRONTEND=noninteractive
sudo apt-get update
sudo apt-get install -y software-properties-common apt-transport-https
sudo apt-key add .github/workflows/hhvm.gpg.key
if [ "${{matrix.hhvm}}" = "nightly" ]; then
sudo add-apt-repository https://dl.hhvm.com/ubuntu
sudo apt-get install -y hhvm-nightly
elif [ "${{matrix.hhvm}}" = "latest" ]; then
sudo add-apt-repository https://dl.hhvm.com/ubuntu
sudo apt-get install -y hhvm
else
DISTRO=$(lsb_release --codename --short)
sudo add-apt-repository \
"deb https://dl.hhvm.com/ubuntu ${DISTRO}-${{matrix.hhvm}} main"
sudo apt-get install -y hhvm
fi
- name: Install HHVM (brew)
if: matrix.os == 'macos'
run: |
brew tap hhvm/hhvm
if [ "${{matrix.hhvm}}" = "latest" ]; then
brew install hhvm
else
brew install hhvm-${{matrix.hhvm}}
fi
- name: Inspect HHVM and Hack versions
run: |
hhvm --version
hh_client --version
- name: Create branch for version alias
run: git checkout -b CI_current_pull_request
- name: Install project dependencies
run: php ${{runner.temp}}/composer.phar install
- name: Typecheck
run: hh_client
- name: Run tests
run: vendor/bin/hacktest tests/
- name: Run lint
if: matrix.hhvm != 'nightly'
run: vendor/bin/hhast-lint
- uses: hhvm/actions/hack-lint-test@master
with:
hhvm: ${{matrix.hhvm}}
36 changes: 0 additions & 36 deletions .github/workflows/hhvm.gpg.key

This file was deleted.

19 changes: 0 additions & 19 deletions .github/workflows/install-composer.sh

This file was deleted.

2 changes: 1 addition & 1 deletion .hhconfig
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ user_attributes=
disallow_array_literal = true
disallow_silence = true
allowed_decl_fixme_codes=2053,4045,4047
allowed_fixme_codes_strict=2011,2049,2050,2053,4027,4045,4047,4104,4106,4107,4108,4110,4128,4135,4188,4240,4323
allowed_fixme_codes_strict=2011,2049,2050,2053,4027,4045,4047,4104,4106,4107,4108,4110,4128,4135,4188,4240,4323,4390,4401
19 changes: 0 additions & 19 deletions .travis.sh

This file was deleted.

0 comments on commit e09958e

Please sign in to comment.