Skip to content

Commit 323baae

Browse files
committed
dont run spellcheck on vendor/bundle
1 parent 89cd8d9 commit 323baae

3 files changed

Lines changed: 45 additions & 5 deletions

File tree

.cspell.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
{
2-
"ignorePaths": [],
2+
"ignorePaths": [
3+
"sorbet/rbi/annotations/**",
4+
"sorbet/rbi/dsl/**",
5+
"sorbet/rbi/gems/**",
6+
"vendor/**",
7+
"node_modules/**"
8+
],
39
"overrides": [],
410
"ignoreRegExpList": [],
511
"useGitignore": true,

.github/workflows/test.yml

Lines changed: 34 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,43 @@ jobs:
3838

3939
- name: Prettier (Format Check)
4040
run: npx prettier --check "**/*.{js,json,md}"
41+
42+
tapioca:
43+
name: Tapioca RBI Check
44+
runs-on: ubuntu-latest
45+
needs: [lint]
46+
steps:
47+
- uses: actions/checkout@v3
48+
49+
- name: Setup Ruby
50+
uses: ruby/setup-ruby@v1
51+
with:
52+
ruby-version: "3.3.6"
53+
bundler-cache: true
54+
55+
- name: Install dependencies
56+
run: |
57+
ruby -v
58+
bundle install
59+
60+
- name: Generate and verify RBI files
61+
run: |
62+
bundle exec tapioca gems --verify
63+
bundle exec tapioca dsl --verify
64+
65+
- name: Check for RBI changes
66+
run: |
67+
# Check if there are any uncommitted changes to RBI files
68+
git status --porcelain sorbet/rbi/
69+
if [[ -n $(git status --porcelain sorbet/rbi/) ]]; then
70+
echo "Error: RBI files are out of date. Please run 'bundle exec tapioca gems' and 'bundle exec tapioca dsl' and commit the changes."
71+
git diff sorbet/rbi/
72+
exit 1
73+
fi
4174
4275
test:
4376
name: "Tests: Ruby ${{ matrix.ruby }} / Rails ${{ matrix.rails }}"
44-
needs: [lint]
77+
needs: [lint, tapioca]
4578
runs-on: ubuntu-22.04
4679
strategy:
4780
fail-fast: false

.gitignore

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
/tmp/
88
/Gemfile.lock
99
*.gem
10-
/node_modules/
11-
/plans/
12-
/log/
10+
/node_modules
11+
/vendor/bundle
12+
/plans
13+
/log

0 commit comments

Comments
 (0)