Skip to content

Commit

Permalink
Merge pull request #254 from abinoam/experiment_with_github_actions
Browse files Browse the repository at this point in the history
Add MacOs, Windows, TruffleRuby and head branches to the GH Actions matrix
  • Loading branch information
abinoam authored Dec 31, 2022
2 parents 4313ce4 + 03e39a6 commit 38528f0
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 10 deletions.
30 changes: 24 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,23 +4,41 @@ on: [push, pull_request]

jobs:
test:
runs-on: ubuntu-latest

strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
ruby-version:
- head
- '3.2'
- '3.1'
- '3.0'
- '2.7'
- '2.6'
- '2.5'
- '2.4'
- '2.3'
- '2.2'
- '2.1'
- jruby-9.3
- jruby-9.2
- jruby
- jruby-head
- truffleruby
- truffleruby-head
- truffleruby+graalvm
include:
- os: windows-latest
ruby-version: head
- os: windows-latest
ruby-version: '3.1'
- os: windows-latest
ruby-version: mingw
- os: windows-latest
ruby-version: mswin
- os: windows-latest
ruby-version: ucrt
- os: macos-latest
ruby-version: 'head'
- os: macos-latest
ruby-version: '3.1'
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- name: Set up Ruby ${{ matrix.ruby-version }}
Expand Down
6 changes: 2 additions & 4 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,13 @@ git_source(:github) { |repo_name| "https://github.com/#{repo_name}" }
# Specify your gem's dependencies in tgem.gemspec
gemspec

platform :ruby do
# Running only on MRI
gem "simplecov", group: :test
end
gem "simplecov", group: :test, require: false

group :code_quality do
gem "flog", require: false
gem "pronto", require: false, platform: :ruby
gem "pronto-flay", require: false, platform: :ruby
# gem "pronto-poper", require: false, platform: :ruby
gem "pronto-reek", require: false, platform: :ruby
gem "pronto-rubocop", require: false, platform: :ruby
end

0 comments on commit 38528f0

Please sign in to comment.