Skip to content

Commit

Permalink
Improve CI GH action
Browse files Browse the repository at this point in the history
This commit contains some improvements for the CI:
- Renamed from `Tests` to `CI` because it doesn't run only tests.
- Removed `bundle install` step because it's already done in `Setup`.
- Created single steps for each rake task.

Especially the last point is useful because by separating the step/task,
we can easily find and fix which task is failing (if any) and fix it.
  • Loading branch information
MassimilianoLattanzio committed Aug 3, 2023
1 parent 75c32d5 commit 3048ae8
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions .github/workflows/main.yml → .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Tests
name: CI

on:
push:
Expand All @@ -23,9 +23,11 @@ jobs:
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- name: Install dependencies
run: |
gem install bundler
bundle install --jobs 4 --retry 3
- name: Run the default task
run: bundle exec rake
- name: Lint files
run: bundle exec rake rubocop
- name: Run tests
run: bundle exec rake spec
- name: Verify documentation is up to date
run: bundle exec rake generate_cops_documentation
env:
CI: true

0 comments on commit 3048ae8

Please sign in to comment.