Skip to content

Commit

Permalink
CI: Install ImageMagick on Lint
Browse files Browse the repository at this point in the history
  • Loading branch information
Watson1978 committed May 20, 2024
1 parent 39091ff commit 9f7c369
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,26 @@ jobs:
lint:
runs-on: ubuntu-22.04
timeout-minutes: 20
strategy:
matrix:
imagemagick-version:
- { full: 7.1.1-29, major-minor: '7.1' }
name: Lint
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}
- name: Cache ImageMagick
uses: actions/cache@v4
with:
path: ./build-ImageMagick
key: v1-linux-imagemagick-${{ matrix.imagemagick-version.full }}
restore-keys: |
v1-linux-imagemagick-${{ matrix.imagemagick-version.full }}
- name: Install ImageMagick ${{ matrix.imagemagick-version.full }}
run: |
export IMAGEMAGICK_VERSION=${{ matrix.imagemagick-version.full }}
./before_install_linux.sh
- name: Set up Ruby 3.0
uses: ruby/setup-ruby@master
with:
Expand Down
1 change: 1 addition & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ AllCops:
Exclude:
- 'vendor/bundle/**/*'
- 'rails_generators/gruff/**/*'
- 'build-ImageMagick/**/*'

Metrics:
Enabled: false
Expand Down

0 comments on commit 9f7c369

Please sign in to comment.