Skip to content

Commit

Permalink
Modernize CI
Browse files Browse the repository at this point in the history
- Do not test against Ruby 2.1 and 2.2
- Test against latest Ruby versions
- Fix actions permissions for better security
- Update GitHub actions
- Add DependabBot
  • Loading branch information
tagliala committed Jan 9, 2024
1 parent d18b257 commit 32a2ab4
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 5 deletions.
11 changes: 11 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
version: 2
updates:
- package-ecosystem: github-actions
directory: /
schedule:
interval: weekly
- package-ecosystem: bundler
directory: /
schedule:
interval: weekly
open-pull-requests-limit: 10
13 changes: 8 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,23 +6,26 @@ on:
pull_request:
branches: [ master ]

permissions:
contents: read

jobs:
test:
name: Specs
runs-on: ubuntu-latest
strategy:
matrix:
ruby-version: ['2.1', '2.2', '2.3', '2.4', '2.5', '2.6', '2.7', '3.0']
experimental: [false]
ruby-version: ['2.3', '2.4', '2.5', '2.6', '2.7', '3.0', '3.1', '3.2', '3.3']
channel: ['stable']

include:
- ruby-version: 'head'
experimental: true
channel: 'experimental'

continue-on-error: ${{ matrix.experimental }}
continue-on-error: ${{ matrix.channel != 'stable' }}

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
Expand Down

0 comments on commit 32a2ab4

Please sign in to comment.