Skip to content

Commit

Permalink
Merge pull request #181 from ruby/flavorjones-update-ci-with-ruby31
Browse files Browse the repository at this point in the history
ci: update to cover Ruby 3.1
  • Loading branch information
flavorjones authored Jan 17, 2022
2 parents 693c9b8 + 35121bb commit 27bd15e
Showing 1 changed file with 30 additions and 10 deletions.
40 changes: 30 additions & 10 deletions .github/workflows/ubuntu.yml
Original file line number Diff line number Diff line change
@@ -1,20 +1,40 @@
name: ubuntu

on: [push, pull_request]
concurrency:
group: "${{github.workflow}}-${{github.ref}}"
cancel-in-progress: true
on:
workflow_dispatch:
pull_request:
types: [opened, synchronize]
branches:
- '*'
push:
branches:
- main
tags:
- v*.*.*
schedule:
- cron: "0 8 * * 3" # At 08:00 on Wednesday # https://crontab.guru/#0_8_*_*_3

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
ruby: [ '3.0', 2.7, 2.6, 2.5, head, jruby-9.2.19.0, jruby-9.3.1.0, jruby-head ]
ruby:
- "2.5"
- "2.6"
- "2.7"
- "3.0"
- "3.1"
- "head"
- "jruby-9.2.20.1"
- "jruby-9.3.2.0"
- "jruby-head"
steps:
- uses: actions/checkout@v2
- name: Set up Ruby
uses: ruby/setup-ruby@v1
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true # 'bundle install' and cache
- name: Run test
run: bundle exec rake compile test
continue-on-error: ${{ matrix.ruby == 'jruby-head' }}
ruby-version: ${{matrix.ruby}}
bundler-cache: true
- run: bundle exec rake compile test

0 comments on commit 27bd15e

Please sign in to comment.