From 774e29281e8e208e6a524e8285122d8670e791ed Mon Sep 17 00:00:00 2001 From: Adam Robertson Date: Fri, 8 Nov 2024 11:29:59 -0800 Subject: [PATCH] Update actions to fix testing, add more platforms --- .github/workflows/specs.yml | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/.github/workflows/specs.yml b/.github/workflows/specs.yml index 552da8e..c45a5af 100644 --- a/.github/workflows/specs.yml +++ b/.github/workflows/specs.yml @@ -7,19 +7,24 @@ on: branches: [ main ] jobs: - build: - - runs-on: ubuntu-latest + test: + strategy: + fail-fast: false + matrix: + os: [ ubuntu-latest, macos-latest ] + # Due to https://github.com/actions/runner/issues/849, we have to use quotes for '3.0' + ruby: [ '2.7', '3.0', '3.1', '3.2', '3.3', head, jruby, jruby-head, truffleruby, truffleruby-head ] + runs-on: ${{ matrix.os }} steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Install additional dependencies run: | sudo apt update && sudo apt install postgresql-client -y - - name: Set up Ruby 2.7 - uses: actions/setup-ruby@v1 + - name: Set up Ruby + uses: ruby/setup-ruby@v1 with: - ruby-version: 2.7.x + ruby-version: ${{ matrix.ruby }} - name: Setup PostgreSQL uses: Harmon758/postgresql-action@v1