summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAbinoam P. Marques Jr <abinoam@gmail.com>2022-12-31 19:39:03 -0300
committerGitHub <noreply@github.com>2022-12-31 19:39:03 -0300
commit38528f093ea7fc9ed2af25552745c697181201f1 (patch)
treecb617f24f8c8498f5f7022f1e9e7e6f554e32c1d
parent4313ce4c39b7ac0da19d4f51b49fa0aa003a3b4e (diff)
parent03e39a6253c0cc88761903044f5407e6a91950e7 (diff)
downloadhighline-38528f093ea7fc9ed2af25552745c697181201f1.tar.gz
Merge pull request #254 from abinoam/experiment_with_github_actions
Add MacOs, Windows, TruffleRuby and head branches to the GH Actions matrix
-rw-r--r--.github/workflows/ci.yml30
-rw-r--r--Gemfile6
2 files changed, 26 insertions, 10 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 7fe8d48..0553039 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -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 }}
diff --git a/Gemfile b/Gemfile
index bae1b36..1b13d38 100644
--- a/Gemfile
+++ b/Gemfile
@@ -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