[SDTEST-1229] Skip before(:all) context hooks when all examples are skipped #1159
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Check | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
# The branches below must be a subset of the branches above | |
branches: [main] | |
jobs: | |
lint: | |
name: Lint | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: '3.3' | |
- name: Install dependencies | |
run: bundle install | |
- run: bundle exec standardrb | |
typecheck: | |
name: Type checking | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: '3.3' | |
bundler-cache: true # runs 'bundle install' and caches installed gems automatically | |
- name: Check for stale signature files | |
run: bundle exec rake rbs:stale | |
- name: Check for missing signature files | |
run: bundle exec rake rbs:missing | |
- name: Check types | |
run: bundle exec rake steep:check | |
- name: Record stats | |
run: bundle exec rake steep:stats[md] >> $GITHUB_STEP_SUMMARY |