From c54dd7b25149958c9be4dd197e881afc3447d493 Mon Sep 17 00:00:00 2001 From: Geremia Taglialatela Date: Sat, 15 Jul 2023 09:28:53 +0200 Subject: [PATCH] Improve CI --- .github/workflows/legacy_ruby.yml | 28 ++++++++++++++++++++++++++ .github/workflows/{ci.yml => ruby.yml} | 13 +++++++----- README.md | 5 +++-- 3 files changed, 39 insertions(+), 7 deletions(-) create mode 100644 .github/workflows/legacy_ruby.yml rename .github/workflows/{ci.yml => ruby.yml} (64%) diff --git a/.github/workflows/legacy_ruby.yml b/.github/workflows/legacy_ruby.yml new file mode 100644 index 0000000..ac5c0e6 --- /dev/null +++ b/.github/workflows/legacy_ruby.yml @@ -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 diff --git a/.github/workflows/ci.yml b/.github/workflows/ruby.yml similarity index 64% rename from .github/workflows/ci.yml rename to .github/workflows/ruby.yml index a5fbd59..5baf2d0 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ruby.yml @@ -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: diff --git a/README.md b/README.md index 63ab005..da38f64 100644 --- a/README.md +++ b/README.md @@ -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