Skip to content
Snippets Groups Projects
Commit 98f82357 authored by vidusheeamoli's avatar vidusheeamoli
Browse files

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

parent 2468fb12
No related branches found
No related tags found
No related merge requests found
......@@ -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"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment