Skip to content

Commit

Permalink
CI: Enable Sorbet typecheck
Browse files Browse the repository at this point in the history
Signed-off-by: Kostiantyn Kostiuk <[email protected]>
  • Loading branch information
kostyanf14 committed Mar 12, 2024
1 parent f48faaf commit db1c10a
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,37 @@ jobs:
- name: RSpec run
run: bundle exec rspec

typecheck:
runs-on: ubuntu-20.04
strategy:
fail-fast: false

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Update Ubuntu package repository
run: sudo apt-get update
- name: Setup sqlite-devel
run: sudo apt-get -y install libsqlite3-dev
- name: Setup libcurl-devel
run: sudo apt-get -y install libcurl4 libcurl3-gnutls libcurl4-openssl-dev

- name: Set up Ruby 3.1.4
uses: ruby/setup-ruby@v1
with:
ruby-version: 3.1.4
bundler-cache: false

- name: Install dependencies
run: bundle install

- name: Check for out-of-date RBIs
run: bundle exec tapioca gems --verify

- name: Run sorbet type check
run: bundle exec srb typecheck

rubocop:
runs-on: ubuntu-20.04
strategy:
Expand Down

0 comments on commit db1c10a

Please sign in to comment.