Skip to content

Commit

Permalink
Update github CI action
Browse files Browse the repository at this point in the history
  • Loading branch information
kivanio committed Jan 12, 2024
1 parent 602f87d commit 21701aa
Showing 1 changed file with 28 additions and 18 deletions.
46 changes: 28 additions & 18 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,32 +9,42 @@ name: CI

on:
push:
branches: [master]
branches: [ master ]
pull_request:
branches: [master]
branches: [ master ]

permissions:
contents: read

jobs:
test:
name: Ruby ${{ matrix.ruby }}
runs-on: ubuntu-latest
name: Test against Ruby ${{ matrix.ruby-version }}
strategy:
fail-fast: false # don't fail all matrix builds if one fails
matrix:
ruby-version: [2.7, 3.1, 3.2, 3.3]

ruby:
- '2.7'
- '3.0'
- '3.1'
- '3.2'
- '3.3'
- 'head'
- truffleruby-head
continue-on-error: ${{ endsWith(matrix.ruby, 'head') }}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Install ghostscript
run: |
sudo apt-get update
sudo apt-get -y install ghostscript
which ghostscript
- name: Install ghostscript
run: |
sudo apt-get update
sudo apt-get -y install ghostscript
which ghostscript
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby-version }}
bundler-cache: true # runs 'bundle install' and caches installed
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true # runs 'bundle install' and caches installed

- name: Run tests
run: bundle exec rake
- name: Run tests
run: bundle exec rake

0 comments on commit 21701aa

Please sign in to comment.