From b06856ec3752e2bea8c774b029416eaf9ca2b9fc Mon Sep 17 00:00:00 2001 From: aguspe Date: Fri, 19 Dec 2025 14:42:05 +0100 Subject: [PATCH 1/3] improving steep setup --- .github/workflows/type-check.yml | 31 +++++++++++++++++++ .ruby-version | 1 + sig/lib/appium_lib_core/android.rbs | 4 +++ .../android/uiautomator2/device.rbs | 15 +++++++++ sig/lib/appium_lib_core/android_espresso.rbs | 4 +++ .../appium_lib_core/android_uiautomator2.rbs | 4 +++ sig/lib/appium_lib_core/common.rbs | 4 +++ sig/lib/appium_lib_core/common/base.rbs | 4 +++ sig/lib/appium_lib_core/ios_xcuitest.rbs | 4 +++ sig/lib/appium_lib_core/mac2.rbs | 4 +++ sig/lib/appium_lib_core/windows.rbs | 4 +++ 11 files changed, 79 insertions(+) create mode 100644 .github/workflows/type-check.yml create mode 100644 .ruby-version create mode 100644 sig/lib/appium_lib_core/android.rbs create mode 100644 sig/lib/appium_lib_core/android/uiautomator2/device.rbs create mode 100644 sig/lib/appium_lib_core/android_espresso.rbs create mode 100644 sig/lib/appium_lib_core/android_uiautomator2.rbs create mode 100644 sig/lib/appium_lib_core/common.rbs create mode 100644 sig/lib/appium_lib_core/common/base.rbs create mode 100644 sig/lib/appium_lib_core/ios_xcuitest.rbs create mode 100644 sig/lib/appium_lib_core/mac2.rbs create mode 100644 sig/lib/appium_lib_core/windows.rbs diff --git a/.github/workflows/type-check.yml b/.github/workflows/type-check.yml new file mode 100644 index 00000000..02d57a42 --- /dev/null +++ b/.github/workflows/type-check.yml @@ -0,0 +1,31 @@ +name: Type Check + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +jobs: + steep: + runs-on: ubuntu-latest + + strategy: + fail-fast: false + matrix: + ruby: [3.1, 3.2, 3.3] + + steps: + - uses: actions/checkout@v6 + + - name: Set up Ruby + uses: ruby/setup-ruby@v1 + with: + ruby-version: ${{ matrix.ruby }} + bundler-cache: true + + - name: Install dependencies + run: bundle install + + - name: Run Steep type check + run: bundle exec rake steep diff --git a/.ruby-version b/.ruby-version new file mode 100644 index 00000000..f092941a --- /dev/null +++ b/.ruby-version @@ -0,0 +1 @@ +3.2.8 diff --git a/sig/lib/appium_lib_core/android.rbs b/sig/lib/appium_lib_core/android.rbs new file mode 100644 index 00000000..d677b1a8 --- /dev/null +++ b/sig/lib/appium_lib_core/android.rbs @@ -0,0 +1,4 @@ +# frozen_string_literal: true + +# This file only contains require statements and does not define any classes or modules. +# No type signatures needed. diff --git a/sig/lib/appium_lib_core/android/uiautomator2/device.rbs b/sig/lib/appium_lib_core/android/uiautomator2/device.rbs new file mode 100644 index 00000000..1e96b434 --- /dev/null +++ b/sig/lib/appium_lib_core/android/uiautomator2/device.rbs @@ -0,0 +1,15 @@ +# frozen_string_literal: true + +module Appium + module Core + module Android + module Uiautomator2 + module Device + extend Forwardable + + def self.extended: (untyped _mod) -> void + end + end + end + end +end diff --git a/sig/lib/appium_lib_core/android_espresso.rbs b/sig/lib/appium_lib_core/android_espresso.rbs new file mode 100644 index 00000000..d677b1a8 --- /dev/null +++ b/sig/lib/appium_lib_core/android_espresso.rbs @@ -0,0 +1,4 @@ +# frozen_string_literal: true + +# This file only contains require statements and does not define any classes or modules. +# No type signatures needed. diff --git a/sig/lib/appium_lib_core/android_uiautomator2.rbs b/sig/lib/appium_lib_core/android_uiautomator2.rbs new file mode 100644 index 00000000..d677b1a8 --- /dev/null +++ b/sig/lib/appium_lib_core/android_uiautomator2.rbs @@ -0,0 +1,4 @@ +# frozen_string_literal: true + +# This file only contains require statements and does not define any classes or modules. +# No type signatures needed. diff --git a/sig/lib/appium_lib_core/common.rbs b/sig/lib/appium_lib_core/common.rbs new file mode 100644 index 00000000..d677b1a8 --- /dev/null +++ b/sig/lib/appium_lib_core/common.rbs @@ -0,0 +1,4 @@ +# frozen_string_literal: true + +# This file only contains require statements and does not define any classes or modules. +# No type signatures needed. diff --git a/sig/lib/appium_lib_core/common/base.rbs b/sig/lib/appium_lib_core/common/base.rbs new file mode 100644 index 00000000..d677b1a8 --- /dev/null +++ b/sig/lib/appium_lib_core/common/base.rbs @@ -0,0 +1,4 @@ +# frozen_string_literal: true + +# This file only contains require statements and does not define any classes or modules. +# No type signatures needed. diff --git a/sig/lib/appium_lib_core/ios_xcuitest.rbs b/sig/lib/appium_lib_core/ios_xcuitest.rbs new file mode 100644 index 00000000..d677b1a8 --- /dev/null +++ b/sig/lib/appium_lib_core/ios_xcuitest.rbs @@ -0,0 +1,4 @@ +# frozen_string_literal: true + +# This file only contains require statements and does not define any classes or modules. +# No type signatures needed. diff --git a/sig/lib/appium_lib_core/mac2.rbs b/sig/lib/appium_lib_core/mac2.rbs new file mode 100644 index 00000000..d677b1a8 --- /dev/null +++ b/sig/lib/appium_lib_core/mac2.rbs @@ -0,0 +1,4 @@ +# frozen_string_literal: true + +# This file only contains require statements and does not define any classes or modules. +# No type signatures needed. diff --git a/sig/lib/appium_lib_core/windows.rbs b/sig/lib/appium_lib_core/windows.rbs new file mode 100644 index 00000000..d677b1a8 --- /dev/null +++ b/sig/lib/appium_lib_core/windows.rbs @@ -0,0 +1,4 @@ +# frozen_string_literal: true + +# This file only contains require statements and does not define any classes or modules. +# No type signatures needed. From cf4923690e3f8afd28b5024173694a458bbc1e87 Mon Sep 17 00:00:00 2001 From: aguspe Date: Fri, 19 Dec 2025 14:45:42 +0100 Subject: [PATCH 2/3] remove .ruby-version --- .ruby-version | 1 - 1 file changed, 1 deletion(-) delete mode 100644 .ruby-version diff --git a/.ruby-version b/.ruby-version deleted file mode 100644 index f092941a..00000000 --- a/.ruby-version +++ /dev/null @@ -1 +0,0 @@ -3.2.8 From f537161cd6d2acf7abe18e761952b41f1f5783df Mon Sep 17 00:00:00 2001 From: aguspe Date: Mon, 22 Dec 2025 23:41:27 +0100 Subject: [PATCH 3/3] removing workflow --- .github/workflows/type-check.yml | 31 ------------------------------- 1 file changed, 31 deletions(-) delete mode 100644 .github/workflows/type-check.yml diff --git a/.github/workflows/type-check.yml b/.github/workflows/type-check.yml deleted file mode 100644 index 02d57a42..00000000 --- a/.github/workflows/type-check.yml +++ /dev/null @@ -1,31 +0,0 @@ -name: Type Check - -on: - push: - branches: [ master ] - pull_request: - branches: [ master ] - -jobs: - steep: - runs-on: ubuntu-latest - - strategy: - fail-fast: false - matrix: - ruby: [3.1, 3.2, 3.3] - - steps: - - uses: actions/checkout@v6 - - - name: Set up Ruby - uses: ruby/setup-ruby@v1 - with: - ruby-version: ${{ matrix.ruby }} - bundler-cache: true - - - name: Install dependencies - run: bundle install - - - name: Run Steep type check - run: bundle exec rake steep