Skip to content

Commit

Permalink
Add GitHub Actions additional platforms to test
Browse files Browse the repository at this point in the history
  • Loading branch information
gangelo committed Aug 3, 2024
1 parent e808ccd commit 82e7296
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
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
1 change: 1 addition & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,7 @@ PLATFORMS
x64-mingw-ucrt
x64-mingw32
x86_64-darwin-19
x86_64-darwin-20
x86_64-darwin-21
x86_64-linux

Expand Down

0 comments on commit 82e7296

Please sign in to comment.