Merge pull request #1935 from kmuto/fix-ruby34 #957
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
ruby: ['3.0', '3.1', '3.2', '3.3', '3.4'] | |
os: [ubuntu-latest, macOS-latest] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Ruby | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: ${{ matrix.ruby }} | |
bundler-cache: true | |
- name: fix ImageMagick policy.xml on Linux | |
if: runner.os == 'Linux' | |
run: sudo sed -i 's/none/read|write/g' /etc/ImageMagick-6/policy.xml | |
- name: Build and test with Rake | |
run: | | |
bundle exec rake test |