Continuous Integration #1835
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Continuous Integration | |
on: | |
push: | |
pull_request: | |
schedule: | |
- cron: "42 15 * * *" | |
jobs: | |
determine-latest-breaking-hhvm-version: | |
runs-on: ubuntu-20.04 | |
outputs: | |
latest-breaking-hhvm-version: ${{steps.determine-latest-breaking-hhvm-version.outputs.latest-breaking-hhvm-version}} | |
steps: | |
- uses: actions/checkout@v3 | |
- id: determine-latest-breaking-hhvm-version | |
run: | | |
[[ \ | |
"$(<codegen-no-rebuild/latest_breaking_version.hack)" \ | |
=~ const\ string\ LATEST_BREAKING_HHVM_VERSION\ =\ \'([0-9]+\.[0-9]+)\. \ | |
]] && \ | |
echo "::set-output name=latest-breaking-hhvm-version::${BASH_REMATCH[1]}" | |
build: | |
needs: determine-latest-breaking-hhvm-version | |
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-20.04] | |
hhvm: | |
- 4.168 | |
runs-on: ${{matrix.os}} | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: hhvm/actions/hack-lint-test@master | |
with: | |
hhvm: ${{matrix.hhvm}} | |
# We need bin/hhast-lint instead of vendor/bin/hhast-lint | |
skip_lint: true | |
- name: Lint | |
run: bin/hhast-lint | |
- name: Check for manually modified codegen | |
run: vendor/bin/hh-codegen-verify-signatures codegen/ |