Skip to content

Commit

Permalink
Refactor Rubocop job to run in Docker container
Browse files Browse the repository at this point in the history
  • Loading branch information
oleander committed Nov 8, 2024
1 parent 9c9784f commit aa9753b
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,11 @@ jobs:
- name: Check out repository
uses: actions/checkout@v4

- name: Install Ruby and dependencies
uses: ruby/setup-ruby@v1
with:
bundler-cache: true
ruby-version: 3.0
- name: Build Docker image with Ruby version
run: docker build --build-arg RUBY_VERSION=3.3 -t git-fame -f .devcontainer/Dockerfile .

- name: Run Rubocop
run: bundle exec rubocop
run: docker run --rm -v $(pwd):/workspace git-fame bundle exec rubocop

rspec:
runs-on: ${{ matrix.os }}
Expand Down

0 comments on commit aa9753b

Please sign in to comment.