Skip to content

Commit 383e0f9

Browse files
authored
Merge pull request #156 from omniauth/ci-gemfile-lock
💚 Test against committed Gemfile.lock
2 parents 1337b07 + 299caef commit 383e0f9

33 files changed

Lines changed: 100 additions & 38 deletions

.github/workflows/kitchen.yml

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
---
2+
# Targets the Rakefile's default task and the main Gemfile,
3+
# which contributors and maintainers would use locally for development
4+
name: Kitchen Sink
5+
6+
permissions:
7+
contents: read
8+
9+
env:
10+
KITCHEN_SINK: true
11+
12+
on:
13+
push:
14+
branches:
15+
- 'main'
16+
- '*-stable'
17+
tags:
18+
- '!*' # Do not execute on tags
19+
pull_request:
20+
branches:
21+
- '*'
22+
# Allow manually triggering the workflow.
23+
workflow_dispatch:
24+
25+
# Cancels all previous workflow runs for the same branch that have not yet completed.
26+
concurrency:
27+
# The concurrency group contains the workflow name and the branch name.
28+
group: "${{ github.workflow }}-${{ github.ref }}"
29+
cancel-in-progress: true
30+
31+
jobs:
32+
test:
33+
name: Tests default rake task with main Gemfile.lock ${{ matrix.name_extra || '' }}
34+
if: ${{ !contains(github.event.commits[0].message, '[ci skip]') && !contains(github.event.commits[0].message, '[skip ci]') }}
35+
runs-on: ubuntu-latest
36+
continue-on-error: ${{ matrix.experimental }}
37+
strategy:
38+
fail-fast: false
39+
matrix:
40+
include:
41+
# Ruby <whichever version is current, e.g., 3.4 as of 2025-07-12>
42+
- ruby: "ruby"
43+
exec_cmd: "rake"
44+
rubygems: latest
45+
bundler: latest
46+
experimental: false
47+
48+
steps:
49+
- name: Checkout
50+
uses: actions/checkout@v4
51+
52+
- name: Setup Ruby & RubyGems
53+
uses: ruby/setup-ruby@v1
54+
with:
55+
ruby-version: ${{ matrix.ruby }}
56+
rubygems: ${{ matrix.rubygems }}
57+
bundler: ${{ matrix.bundler }}
58+
bundler-cache: true
59+
60+
- name: Checks the kitchen sink via ${{ matrix.exec_cmd }}
61+
run: bundle exec ${{ matrix.exec_cmd }}

.rubocop_gradual.lock

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
{
2-
"README.md:1434089789": [
2+
"README.md:766815360": [
33
[201, 3, 100, "Style/ClassMethodsDefinitions: Use `class << self` to define a class method.", 3592044714]
44
],
5-
"Rakefile:2617189060": [
6-
[94, 3, 11, "Rake/DuplicateTask: Task `spec` is defined at both Rakefile:85 and Rakefile:94.", 2701974006]
5+
"Rakefile:3407355619": [
6+
[93, 3, 11, "Rake/DuplicateTask: Task `spec` is defined at both Rakefile:84 and Rakefile:93.", 2701974006]
77
],
88
"bin/bundle:247448467": [
99
[64, 5, 20, "ThreadSafety/ClassInstanceVariable: Avoid class instance variables.", 2485198147]

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
# 🫵 OmniAuth::Identity
1414

15-
[![Version][👽versioni]][👽version] [![License: MIT][📄license-img]][📄license-ref] [![Downloads Rank][👽dl-ranki]][👽dl-rank] [![Open Source Helpers][👽oss-helpi]][👽oss-help] [![Depfu][🔑depfui♻️]][🔑depfu] [![Coveralls Test Coverage][🔑coveralls-img]][🔑coveralls] [![CodeCov Test Coverage][🔑codecovi♻️]][🔑codecov] [![QLTY Test Coverage][🔑qlty-covi♻️]][🔑qlty-cov] [![QLTY Maintainability][🔑qlty-mnti♻️]][🔑qlty-mnt] [![CI Heads][🚎3-hd-wfi]][🚎3-hd-wf] [![CI Runtime Dependencies @ HEAD][🚎12-crh-wfi]][🚎12-crh-wf] [![CI Current][🚎11-c-wfi]][🚎11-c-wf] [![CI JRuby][🚎10-j-wfi]][🚎10-j-wf] [![CI Supported][🚎6-s-wfi]][🚎6-s-wf] [![CI Legacy][🚎4-lg-wfi]][🚎4-lg-wf] [![CI Unsupported][🚎7-us-wfi]][🚎7-us-wf] [![CI Ancient][🚎1-an-wfi]][🚎1-an-wf] [![CI Test Coverage][🚎2-cov-wfi]][🚎2-cov-wf] [![CI Style][🚎5-st-wfi]][🚎5-st-wf]
15+
[![Version][👽versioni]][👽version] [![License: MIT][📄license-img]][📄license-ref] [![Downloads Rank][👽dl-ranki]][👽dl-rank] [![Open Source Helpers][👽oss-helpi]][👽oss-help] [![Depfu][🔑depfui♻️]][🔑depfu] [![Coveralls Test Coverage][🔑coveralls-img]][🔑coveralls] [![CodeCov Test Coverage][🔑codecovi♻️]][🔑codecov] [![QLTY Test Coverage][🔑qlty-covi♻️]][🔑qlty-cov] [![QLTY Maintainability][🔑qlty-mnti♻️]][🔑qlty-mnt] [![CI Heads][🚎3-hd-wfi]][🚎3-hd-wf] [![CI Runtime Dependencies @ HEAD][🚎12-crh-wfi]][🚎12-crh-wf] [![CI Current][🚎11-c-wfi]][🚎11-c-wf] [![CI JRuby][🚎10-j-wfi]][🚎10-j-wf] [![CI Supported][🚎6-s-wfi]][🚎6-s-wf] [![CI Legacy][🚎4-lg-wfi]][🚎4-lg-wf] [![CI Unsupported][🚎7-us-wfi]][🚎7-us-wf] [![CI Ancient][🚎1-an-wfi]][🚎1-an-wf] [![CI Test Coverage][🚎2-cov-wfi]][🚎2-cov-wf] [![CI Style][🚎5-st-wfi]][🚎5-st-wf] [![CI w/ committed Gemfile.lock][🚎13-k-wfi]][🚎13-k-wf]
1616

1717
---
1818

@@ -564,6 +564,8 @@ P.S. If you need help️, or want to say thanks, 👇 Join the Discord.
564564
[🚎11-c-wfi]: https://github.com/omniauth/omniauth-identity/actions/workflows/current.yml/badge.svg
565565
[🚎12-crh-wf]: https://github.com/omniauth/omniauth-identity/actions/workflows/current-runtime-heads.yml
566566
[🚎12-crh-wfi]: https://github.com/omniauth/omniauth-identity/actions/workflows/current-runtime-heads.yml/badge.svg
567+
[🚎13-k-wf]: https://github.com/omniauth/omniauth-identity/actions/workflows/kitchen.yml
568+
[🚎13-k-wfi]: https://github.com/omniauth/omniauth-identity/actions/workflows/kitchen.yml/badge.svg
567569
[💎ruby-2.3i]: https://img.shields.io/badge/Ruby-2.3-DF00CA?style=for-the-badge&logo=ruby&logoColor=white
568570
[💎ruby-2.4i]: https://img.shields.io/badge/Ruby-2.4-DF00CA?style=for-the-badge&logo=ruby&logoColor=white
569571
[💎ruby-2.5i]: https://img.shields.io/badge/Ruby-2.5-DF00CA?style=for-the-badge&logo=ruby&logoColor=white

Rakefile

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,7 @@ require "bundler/gem_tasks"
44

55
defaults = []
66

7-
# See: https://docs.gitlab.com/ci/variables/predefined_variables/
8-
is_gitlab = ENV.fetch("GITLAB_CI", "false").casecmp("true") == 0
7+
is_ci = ENV.fetch("CI", "false").casecmp("true") == 0
98

109
### DEVELOPMENT TASKS
1110
# Setup Kettle Soup Cover
@@ -142,7 +141,7 @@ begin
142141
t.verbose = false
143142
t.source_files = "{lib,spec,spec_ignored,spec_orms}/**/*.rb"
144143
end
145-
defaults << "reek" unless is_gitlab
144+
defaults << "reek" unless is_ci
146145
rescue LoadError
147146
desc("(stub) reek is unavailable")
148147
task(:reek) do

docs/OmniAuth.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ <h2>Defined Under Namespace</h2>
107107
</div>
108108

109109
<div id="footer">
110-
Generated on Mon Jul 28 02:35:07 2025 by
110+
Generated on Mon Jul 28 03:53:42 2025 by
111111
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
112112
0.9.37 (ruby-3.4.5).
113113
</div>

docs/OmniAuth/Identity.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ <h2>Defined Under Namespace</h2>
107107
</div>
108108

109109
<div id="footer">
110-
Generated on Mon Jul 28 02:35:07 2025 by
110+
Generated on Mon Jul 28 03:53:42 2025 by
111111
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
112112
0.9.37 (ruby-3.4.5).
113113
</div>

docs/OmniAuth/Identity/Model.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -744,7 +744,7 @@ <h3 class="signature " id="uid-instance_method">
744744
</div>
745745

746746
<div id="footer">
747-
Generated on Mon Jul 28 02:35:07 2025 by
747+
Generated on Mon Jul 28 03:53:42 2025 by
748748
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
749749
0.9.37 (ruby-3.4.5).
750750
</div>

docs/OmniAuth/Identity/Model/ClassCreateApi.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ <h3 class="signature first" id="create-instance_method">
248248
</div>
249249

250250
<div id="footer">
251-
Generated on Mon Jul 28 02:35:07 2025 by
251+
Generated on Mon Jul 28 03:53:42 2025 by
252252
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
253253
0.9.37 (ruby-3.4.5).
254254
</div>

docs/OmniAuth/Identity/Model/ClassMethods.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -436,7 +436,7 @@ <h3 class="signature " id="locate-instance_method">
436436
</div>
437437

438438
<div id="footer">
439-
Generated on Mon Jul 28 02:35:07 2025 by
439+
Generated on Mon Jul 28 03:53:42 2025 by
440440
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
441441
0.9.37 (ruby-3.4.5).
442442
</div>

docs/OmniAuth/Identity/Model/InstancePersistedApi.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ <h3 class="signature first" id="persisted?-instance_method">
226226
</div>
227227

228228
<div id="footer">
229-
Generated on Mon Jul 28 02:35:07 2025 by
229+
Generated on Mon Jul 28 03:53:42 2025 by
230230
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
231231
0.9.37 (ruby-3.4.5).
232232
</div>

0 commit comments

Comments
 (0)