.github/workflows: use brew typecheck in tapioca.yml

This commit is contained in:
vidusheeamoli 2020-08-27 02:42:50 +05:30
parent 2468fb127d
commit 98f8235755

View File

@ -21,16 +21,12 @@ jobs:
with:
username: BrewTestBot
# TODO: remove with `brew typecheck`
- name: Set up Ruby
uses: actions/setup-ruby@main
with:
ruby-version: '2.6'
- name: Install RubyGems
run: |
cd "$GITHUB_WORKSPACE/Library/Homebrew"
gem install bundler -v "~>1"
bundle install --jobs 4 --retry 3
run: brew typecheck --update-definitions
- name: Update Tapioca definitions
id: update
@ -48,13 +44,7 @@ jobs:
BRANCH_EXISTS="1"
fi
# TODO: replace with `brew typecheck`
cd "$GITHUB_WORKSPACE/Library/Homebrew"
bundle exec tapioca sync --exclude json
bundle exec srb rbi hidden-definitions
if ! git diff --no-patch --exit-code -- sorbet; then
# if brew typecheck --update --fail-if-not-changed; then
if brew typecheck --update-definitions --fail-if-not-changed; then
git add "$GITHUB_WORKSPACE/Library/Homebrew/sorbet"
git commit -m "sorbet: update RBI files using Tapioca." -m "Autogenerated by [a scheduled GitHub Action](https://github.com/Homebrew/brew/blob/master/.github/workflows/tapioca.yml)."
echo "::set-output name=committed::true"