Skip to content

Commit

Permalink
CI: Install ImageMagick on Lint (#635)
Browse files Browse the repository at this point in the history
  • Loading branch information
Watson1978 authored May 20, 2024
1 parent 39091ff commit 0f520bd
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 3 deletions.
22 changes: 19 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,31 @@ jobs:
lint:
runs-on: ubuntu-22.04
timeout-minutes: 20
name: Lint
strategy:
matrix:
ruby-version: ['3.0']
imagemagick-version:
- { full: 7.1.1-29, major-minor: '7.1' }
name: Lint (Ruby ${{ matrix.ruby-version }}, ImageMagick ${{ matrix.imagemagick-version.major-minor }})
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}
- name: Set up Ruby 3.0
- 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 ${{ matrix.ruby-version }}
uses: ruby/setup-ruby@master
with:
ruby-version: '3.0'
ruby-version: ${{ matrix.ruby-version }}
bundler-cache: true
- name: Install dependencies
run: bundle install --path=vendor/bundle --jobs 4 --retry 3
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 0f520bd

Please sign in to comment.