Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
version: 2
updates:
# raise PRs for gem updates
- package-ecosystem: bundler
directory: "/"
schedule:
interval: daily
time: "13:00"
open-pull-requests-limit: 10

# Maintain dependencies for GitHub Actions
- package-ecosystem: github-actions
directory: "/"
schedule:
interval: daily
time: "13:00"
open-pull-requests-limit: 10
52 changes: 42 additions & 10 deletions .github/workflows/ruby.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,51 @@
---
name: Ruby

on: [push, pull_request]
on:
pull_request: {}
push:
branches: main

jobs:
build:

runs-on: ubuntu-latest

rubocop_and_matrix:
runs-on: ubuntu-24.04
outputs:
ruby: ${{ steps.ruby.outputs.versions }}
steps:
- uses: actions/checkout@v4
- name: Set up Ruby 2.7
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: '2.7'
bundler: '2.4.22'
ruby-version: '3.4'
bundler-cache: true
- name: Build and test with Rake
run: bundle exec rake
- id: ruby
uses: voxpupuli/ruby-version@v1

test:
runs-on: ubuntu-24.04
needs: rubocop_and_matrix
strategy:
fail-fast: false
matrix:
ruby: ${{ fromJSON(needs.rubocop_and_matrix.outputs.ruby) }}
name: "Ruby ${{ matrix.ruby }}"
steps:
- uses: actions/checkout@v4
- name: Install Ruby ${{ matrix.ruby }}
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- name: Run tests
run: bundle exec rake
- name: Build gem
run: gem build --verbose *.gemspec

tests:
needs:
- rubocop_and_matrix
- test
runs-on: ubuntu-latest
name: Test suite
steps:
- run: echo Test suite completed
20 changes: 0 additions & 20 deletions .github/workflows/ruby3.yml

This file was deleted.