From db1c10a78cffa8e84e0a9ed4bef3b2f98bfa2fc9 Mon Sep 17 00:00:00 2001 From: Kostiantyn Kostiuk Date: Thu, 29 Feb 2024 18:00:52 +0200 Subject: [PATCH] CI: Enable Sorbet typecheck Signed-off-by: Kostiantyn Kostiuk --- .github/workflows/check.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index 5551ee35..e06e3f74 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -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: