Skip to content

Commit 4d497b5

Browse files
committed
chore: Update CI workflow commands and clean up routes and specs
- Changed CI workflow commands to use `bundle exec` for running `importmap:audit` and `rubocop` for better dependency management. - Adjusted spacing in routes for `learnings` resources for improved readability. - Removed unnecessary blank lines in `learnings_spec.rb` and `static_pages_spec.rb` to maintain code cleanliness.
1 parent c286ab6 commit 4d497b5

File tree

4 files changed

+3
-5
lines changed

4 files changed

+3
-5
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
bundler-cache: true
3737

3838
- name: Scan for security vulnerabilities in JavaScript dependencies
39-
run: bin/rails importmap:audit
39+
run: bundle exec rails importmap:audit
4040

4141
lint:
4242
runs-on: ubuntu-latest
@@ -51,5 +51,5 @@ jobs:
5151
bundler-cache: true
5252

5353
- name: Lint code for consistent style
54-
run: bin/rubocop -f github
54+
run: bundle exec rubocop
5555

config/routes.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
get "about", to: "static_pages#about"
1414

1515
# Learning Resources (only index, new, create)
16-
resources :learnings, only: [:index, :new, :create] do
16+
resources :learnings, only: [ :index, :new, :create ] do
1717
delete :destroy_multiple, on: :collection
1818
end
1919

spec/requests/learnings_spec.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,4 @@
2121
expect(response).to have_http_status(:success)
2222
end
2323
end
24-
2524
end

spec/requests/static_pages_spec.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,4 @@
2121
expect(response).to have_http_status(:success)
2222
end
2323
end
24-
2524
end

0 commit comments

Comments
 (0)