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

Commit

Permalink
Set branch and version alias for CI on pull requests
Browse files Browse the repository at this point in the history
refs #62

This is based on the trick in the HSL's `.travis.sh`, but uses a new
explicit branch name instead of nuking 'master'.
  • Loading branch information
fredemmott committed Nov 9, 2020
1 parent 3f74eb6 commit e8408ca
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@ jobs:
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
- name: Run autoloader
Expand Down
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@
"Facebook\\AutoloadMap\\ComposerPlugin"
],
"branch-alias": {
"dev-master": "2.x-dev"
"dev-master": "2.x-dev",
"dev-CI_current_pull_request": "2.x-dev"
}
}
}

0 comments on commit e8408ca

Please sign in to comment.