Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add GitHub Actions additional platforms to test #87

Merged
merged 2 commits into from
Aug 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 6 additions & 5 deletions .github/workflows/ruby.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,28 +14,29 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
os: [ubuntu-latest, ubuntu-20.04, macos-latest, macos-13, macos-12, windows-latest, windows-2019]
ruby: ['3.0.7', '3.1', '3.2', '3.3']

steps:
- uses: actions/checkout@v3

- name: Set timezone on Linux
if: matrix.os == 'ubuntu-latest'
if: contains(matrix.os, 'ubuntu')
run: sudo timedatectl set-timezone 'America/New_York'

- name: Set timezone on macOS
if: matrix.os == 'macos-latest'
if: contains(matrix.os, 'macos')
run: sudo systemsetup -settimezone America/New_York

- name: Set timezone on Windows
if: matrix.os == 'windows-latest'
if: contains(matrix.os, 'windows')
run: tzutil /s "Eastern Standard Time"

- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
bundler-cache: true

- name: Update RubyGems
run: gem update --system
Expand Down
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ group :test do
end

group :development, :test do
gem 'dotenv', '>= 2.8', '< 3.0'
gem 'dotenv', '>= 2.8', '< 4.0'
gem 'factory_bot', '~> 6.3'
gem 'ffaker', '~> 2.21'
gem 'pry-byebug', '>= 3.9', '< 4.0'
Expand Down
5 changes: 3 additions & 2 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ GEM
connection_pool (2.4.1)
diff-lcs (1.5.1)
docile (1.4.0)
dotenv (2.8.1)
dotenv (3.1.2)
drb (2.2.1)
dry-configurable (1.1.0)
dry-core (~> 1.0, < 2)
Expand Down Expand Up @@ -160,12 +160,13 @@ PLATFORMS
x64-mingw-ucrt
x64-mingw32
x86_64-darwin-19
x86_64-darwin-20
x86_64-darwin-21
x86_64-linux

DEPENDENCIES
bundler (>= 2.5, < 3.0)
dotenv (>= 2.8, < 3.0)
dotenv (>= 2.8, < 4.0)
dsu!
factory_bot (~> 6.3)
ffaker (~> 2.21)
Expand Down
Loading