Skip to content

Commit

Permalink
Improve CI
Browse files Browse the repository at this point in the history
  • Loading branch information
tagliala committed Jul 15, 2023
1 parent 030df20 commit c54dd7b
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 7 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/legacy_ruby.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Legacy Ruby specs

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

permissions:
contents: read

jobs:
test:
name: Specs
runs-on: ubuntu-20.04
strategy:
matrix:
ruby-version: ['2.1', '2.2', '2.3', '2.4', '2.5', '2.6']

steps:
- uses: actions/checkout@v3
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby-version }}
bundler-cache: true
- name: Run specs
run: bundle exec rake
13 changes: 8 additions & 5 deletions .github/workflows/ci.yml → .github/workflows/ruby.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.7', '3.0', '3.1', '3.2']
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@v3
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
Expand Down
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
# OmniAuth CAS Strategy [![Gem Version][version_badge]][version] [![Build Status][github_actions_status]][github_actions]
# OmniAuth CAS Strategy [![Gem Version][version_badge]][version] [![Build Status][github_actions_status]][github_actions] [![Build Status][github_legacy_actions_status]][github_actions]

[version_badge]: https://badge.fury.io/rb/omniauth-cas.svg
[version]: https://badge.fury.io/rb/omniauth-cas
[github_actions]: https://github.com/ifad/omniauth-cas/actions
[github_actions_status]: https://github.com/ifad/omniauth-cas/actions/workflows/ci.yml/badge.svg
[github_actions_status]: https://github.com/ifad/omniauth-cas/actions/workflows/ruby.yml/badge.svg
[github_actions_legacy_status]: https://github.com/ifad/omniauth-cas/actions/workflows/legacy_ruby.yml/badge.svg
[releases]: https://github.com/dlindahl/omniauth-cas/releases

This is a OmniAuth 1.0 compatible port of the previously available
Expand Down

0 comments on commit c54dd7b

Please sign in to comment.