Skip to content

Commit

Permalink
Update workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
malvads committed Feb 27, 2024
1 parent 6ec9e16 commit 07328c2
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 10 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,15 @@ jobs:
build:
if: github.event_name == 'push' || (github.event_name == 'pull_request' && github.event.pull_request.user.login == 'dependabot[bot]')
runs-on: ubuntu-latest
strategy:
matrix:
ruby-version: ['3.1', '3.0', '2.7']
name: Build gem with Ruby ${{ matrix.ruby-version }}
steps:
- uses: actions/checkout@v2
- name: Set up Ruby
- name: Set up Ruby ${{ matrix.ruby-version }}
uses: ruby/setup-ruby@v1
with:
ruby-version: '3.0.0'
- name: Gem build
run: gem build easycache.gemspec
ruby-version: ${{ matrix.ruby-version }}
- name: Gem build with Ruby ${{ matrix.ruby-version }}
run: gem build easycache.gemspec
15 changes: 9 additions & 6 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,18 @@ on:
- main

jobs:
build:
test:
if: github.event_name == 'push' || (github.event_name == 'pull_request' && github.event.pull_request.user.login == 'dependabot[bot]')
runs-on: ubuntu-latest
strategy:
matrix:
ruby-version: ['3.1', '3.0', '2.7']
name: Test with Ruby ${{ matrix.ruby-version }}
steps:
- uses: actions/checkout@v2
- name: Set up Ruby
- name: Set up Ruby ${{ matrix.ruby-version }}
uses: ruby/setup-ruby@v1
with:
ruby-version: '3.0.0'

- name: Run tests
run: rake test
ruby-version: ${{ matrix.ruby-version }}
- name: Run tests with Ruby ${{ matrix.ruby-version }}
run: rake test

0 comments on commit 07328c2

Please sign in to comment.