Skip to content

Commit

Permalink
use shared github action (#155)
Browse files Browse the repository at this point in the history
Summary: Pull Request resolved: #155

Reviewed By: fredemmott

Differential Revision: D25979783

Pulled By: jjergus

fbshipit-source-id: e7067fa3ad97e7a0ab9e0faf64e23a6041027017
  • Loading branch information
jjergus authored and facebook-github-bot committed Jan 20, 2021
1 parent f0c6145 commit dc78b4c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 98 deletions.
47 changes: 4 additions & 43 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,48 +19,9 @@ 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 --no-autoloader
- name: Generate autoload map
run: hhvm vendor/bin/hh-autoload
- name: Typecheck
run: hh_client
- name: Run tests
run: hhvm vendor/bin/hacktest tests/
- uses: hhvm/actions/hack-lint-test@master
with:
hhvm: ${{matrix.hhvm}}
skip_lint: true
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.

0 comments on commit dc78b4c

Please sign in to comment.