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

Commit

Permalink
Extend GitHub Actions configuration
Browse files Browse the repository at this point in the history
- workaround hack test bug (hhvm/hacktest#103)
- cover XHP permutations
  • Loading branch information
fredemmott committed Oct 28, 2020
1 parent 2ffa707 commit 4275663
Showing 1 changed file with 21 additions and 2 deletions.
23 changes: 21 additions & 2 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,5 +62,24 @@ jobs:
run: cat vendor/autoload.hack
- name: Typecheck
run: hh_client
- name: Run tests
run: vendor/bin/hacktest tests/*.hack
- name: Run most tests
run: |
# Work around https://github.com/hhvm/hacktest/issues/103
vendor/bin/hacktest \
$(ls -1 tests/*hack | grep -v Fallback)
- name: Run fallback handler test
run: |
ENABLE_HH_CLIENT_AUTOLOAD=true vendor/bin/hacktest \
tests/FallbackHandlerTest.hack
- name: Test XHP configuration permutations
run: |
# FactParseScanner should work with any combination of enable_xhp_class_modifier
# and disable_xhp_element_mangling
for A in false true; do
for B in false true; do
hhvm \
-dhhvm.hack.lang.enable_xhp_class_modifier=$A \
-dhhvm.hack.lang.disable_xhp_element_mangling=$B \
vendor/bin/hacktest tests/ScannerTest.hack
done
done

0 comments on commit 4275663

Please sign in to comment.