This repository was archived by the owner on Jun 1, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 13
51 lines (51 loc) · 1.76 KB
/
build-and-test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
name: Continuous Integration
on:
push:
pull_request:
schedule:
- cron: '42 15 * * *'
jobs:
build:
name: HHVM ${{matrix.hhvm}} - ${{matrix.os}}
strategy:
# Run tests on all OS's and HHVM versions, even if one fails
fail-fast: false
matrix:
os: [ ubuntu ]
hhvm:
- '4.168'
- latest
- nightly
runs-on: ${{matrix.os}}-latest
steps:
- uses: actions/checkout@v2
- name: Create branch for version alias
run: git checkout -b CI_current_pull_request
- uses: hhvm/actions/hack-lint-test@master
with:
hhvm: ${{matrix.hhvm}}
skip_tests: true
- name: Run tests
run: bin/hacktest tests/clean/
- id: create-repo-dir
name: Create repository directory
run: echo "::set-output name=path::$(mktemp -d)"
- name: Run HHBC
run: |
# Exclude vendor/bin/ to work around issue in HHVM 4.62
# https://github.com/facebook/hhvm/issues/8719
hhvm --hphp -l 3 \
${{ matrix.hhvm == '4.168' && '--module' || '--dir' }} bin \
${{ matrix.hhvm == '4.168' && '--module' || '--dir' }} src \
${{ matrix.hhvm == '4.168' && '--module' || '--dir' }} tests \
${{ matrix.hhvm == '4.168' && '--module' || '--dir' }} vendor \
--inputs bin/hacktest \
--exclude-dir vendor/bin \
--output-dir ${{ steps.create-repo-dir.outputs.path }}
- name: Run tests in repo-authoritative mode
working-directory: ${{ steps.create-repo-dir.outputs.path }}
run: |
hhvm --no-config \
-d hhvm.repo.authoritative=true \
-d hhvm.repo.central.path=$(pwd)/hhvm.hhbc \
bin/hacktest tests/clean/