From 460cd9f0cd11408f0f247a019c38a6d28cd6baac Mon Sep 17 00:00:00 2001 From: Mike Dalessio Date: Thu, 31 Dec 2020 14:13:08 -0500 Subject: [PATCH] ci: test ruby 3.0 in the github actions macos tests --- .github/workflows/macos.yml | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/.github/workflows/macos.yml b/.github/workflows/macos.yml index db688dcb48..fa78c96acf 100644 --- a/.github/workflows/macos.yml +++ b/.github/workflows/macos.yml @@ -10,9 +10,11 @@ on: jobs: cruby-test-system-libraries: runs-on: macos-latest + strategy: + matrix: + ruby: ["2.7", "3.0"] steps: - uses: actions/checkout@v2 - - name: Set ENV run: | echo "MAKEFLAGS=-j$((1 + $(sysctl -n hw.activecpu)))" >> $GITHUB_ENV @@ -20,12 +22,15 @@ jobs: - uses: ruby/setup-ruby@v1 with: bundler-cache: true - ruby-version: '2.7' + ruby-version: ${{ matrix.ruby }} - run: bundle exec rake compile - run: bundle exec rake test cruby-test-vendored-libraries: runs-on: macos-latest + strategy: + matrix: + ruby: ["2.7", "3.0"] steps: - uses: actions/checkout@v2 - uses: actions/cache@v2 @@ -34,13 +39,12 @@ jobs: key: tarballs-${{ hashFiles('**/dependencies.yml') }} restore-keys: | tarballs- - - name: Set ENV run: | echo "MAKEFLAGS=-j$((1 + $(sysctl -n hw.activecpu)))" >> $GITHUB_ENV - uses: ruby/setup-ruby@v1 with: bundler-cache: true - ruby-version: '2.7' + ruby-version: ${{ matrix.ruby }} - run: bundle exec rake compile - run: bundle exec rake test