Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: support LTS versions of ruby
Browse files Browse the repository at this point in the history
rperryng committed Nov 28, 2023
1 parent 96aeca4 commit 35cd2d2
Showing 1 changed file with 7 additions and 11 deletions.
18 changes: 7 additions & 11 deletions .github/workflows/default.yml
Original file line number Diff line number Diff line change
@@ -8,6 +8,12 @@ concurrency:

jobs:
build:
strategy:
matrix:
ruby_version:
- '3.0'
- '3.1'
- '3.2'
name: Build
runs-on: ubuntu-22.04
steps:
@@ -18,6 +24,7 @@ jobs:
- uses: ruby/setup-ruby@v1
with:
bundler-cache: true
ruby-version: ${{ matrix.ruby_version }}
- name: Fetch main branch
run: git fetch origin main
- uses: r7kamura/rubocop-problem-matchers-action@v1
@@ -28,17 +35,6 @@ jobs:
bundle exec bundle-audit check
- name: Run rspec
run: bundle exec rspec
- name: Check if version has changed
if: ${{ github.ref == 'refs/heads/main' }}
id: version-check
run: |
if [ "$(git diff --name-only HEAD^ HEAD | grep 'lib/eventsimple/version.rb')" ]; then
echo "Version did change"
echo "version_changed=true" >> $GITHUB_OUTPUT
else
echo "Version did not change"
echo "version_changed=false" >> $GITHUB_OUTPUT
fi
- name: Release the gem
if: ${{ github.ref == 'refs/heads/main' && steps.version-check.outputs.version_changed == 'true' }}
run: |

0 comments on commit 35cd2d2

Please sign in to comment.