Skip to content

Commit 07f1fdc

Browse files
Merge pull request #309 from ruby/pr-4c0932d4acf2e2e33e094fb19c12dc46b94f8ae1
Check types in CI
2 parents d5c7482 + a038f22 commit 07f1fdc

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

.github/workflows/build.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,12 @@ jobs:
2929
- uses: actions/checkout@v4
3030
with:
3131
fetch-depth: 0
32+
- uses: ruby/setup-ruby@v1
33+
with:
34+
ruby-version: "3.2"
35+
bundler-cache: true
36+
- run: ./bin/setup
37+
- run: rake check:type
3238
- run: sudo apt-get install clang-format
3339
- run: ./tools/clang-format-diff.sh
3440
- run: rake check:bindgen

tasks/check.rake

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,8 @@ namespace :check do
3030

3131
desc "Check wit-bindgen'ed sources are up-to-date"
3232
task bindgen: %i[bindgen_c bindgen_js]
33+
34+
task :type do
35+
sh "bundle exec steep check"
36+
end
3337
end

0 commit comments

Comments
 (0)