Skip to content

Commit

Permalink
Add configuration for coeffects/capabilities syntax (hhvm#153)
Browse files Browse the repository at this point in the history
Summary: Pull Request resolved: hhvm#153

Reviewed By: jjergus

Differential Revision: D25930308

Pulled By: fredemmott

fbshipit-source-id: 95a177d121ac0728363ebda496140bff86852887
  • Loading branch information
fredemmott authored and facebook-github-bot committed Jan 15, 2021
1 parent 9ec64d9 commit 6d5c0f2
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
matrix:
os: [ ubuntu ]
hhvm:
- '4.79'
- '4.92'
- latest
- nightly
runs-on: ${{matrix.os}}-latest
Expand Down Expand Up @@ -57,8 +57,10 @@ jobs:
- 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
run: php ${{runner.temp}}/composer.phar install --no-autoloader
- name: Generate autoload map
run: hhvm -c hhvm.ini vendor/bin/hh-autoload
- name: Typecheck
run: hh_client
- name: Run tests
run: vendor/bin/hacktest tests/
run: hhvm -c hhvm.ini vendor/bin/hacktest tests/
5 changes: 4 additions & 1 deletion .hhconfig
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,7 @@ unsafe_rx = false
ignored_paths = [ "vendor/.+/tests/.+" ]
user_attributes=
allowed_decl_fixme_codes=2053,4045
allowed_fixme_codes_strict=2011,2049,2050,2053,4027,4045,4106,4107,4108,4110,4128,4135,4188,4200,4240,4248,4259,4297,4323,4387
allowed_fixme_codes_strict=2011,2049,2050,2053,4027,4045,4106,4107,4108,4110,4128,4135,4188,4200,4240,4248,4259,4297,4323,4387,4390,4401
enable_coeffects_syntax=true
call_coeffects=true
local_coeffects=true
1 change: 1 addition & 0 deletions hhvm.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
hhvm.hack.lang.enable_coeffects=true

0 comments on commit 6d5c0f2

Please sign in to comment.