Skip to content

Commit 26b8227

Browse files
authored
Merge pull request #3 from VitalConnectInc/gh-actions
Create ruby.yml
2 parents 13a88ad + d631ba4 commit 26b8227

File tree

5 files changed

+78
-0
lines changed

5 files changed

+78
-0
lines changed

.github/dependabot.yml

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: bundler
4+
directory: "/"
5+
schedule:
6+
interval: "daily"
7+
open-pull-requests-limit: 10
8+
ignore:
9+
- dependency-name: "rubocop-lts"
10+
- package-ecosystem: "github-actions"
11+
directory: "/"
12+
schedule:
13+
interval: "daily"

.github/workflows/unsupported.yml

+52
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
name: Unsupported (EOL) Ruby Matrix
2+
3+
on:
4+
push:
5+
branches:
6+
- 'master'
7+
tags:
8+
- '!*' # Do not execute on tags
9+
pull_request:
10+
branches:
11+
- '*'
12+
# Allow manually triggering the workflow.
13+
workflow_dispatch:
14+
15+
# Cancels all previous workflow runs for the same branch that have not yet completed.
16+
concurrency:
17+
# The concurrency group contains the workflow name and the branch name.
18+
group: "${{ github.workflow }}-${{ github.ref }}"
19+
cancel-in-progress: true
20+
21+
jobs:
22+
test:
23+
name: Specs - Ruby ${{ matrix.ruby }}${{ matrix.name_extra || '' }}
24+
if: "!contains(github.event.commits[0].message, '[ci skip]') && !contains(github.event.commits[0].message, '[skip ci]')"
25+
env: # $BUNDLE_GEMFILE must be set at the job level, so it is set for all steps
26+
BUNDLE_GEMFILE: ${{ github.workspace }}/gemfiles/${{ matrix.gemfile }}.gemfile
27+
strategy:
28+
fail-fast: false
29+
matrix:
30+
include:
31+
- ruby: "3.0"
32+
rubygems: "3.3.27"
33+
bundler: none
34+
gemfile: vanilla
35+
- ruby: "2.7"
36+
rubygems: "3.3.27"
37+
bundler: none
38+
gemfile: vanilla
39+
runs-on: ubuntu-20.04
40+
continue-on-error: ${{ matrix.experimental || endsWith(matrix.ruby, 'head') }}
41+
steps:
42+
- name: Checkout
43+
uses: actions/checkout@v4
44+
- name: Setup Ruby & RubyGems
45+
uses: ruby/setup-ruby@v1
46+
with:
47+
ruby-version: "${{ matrix.ruby }}"
48+
rubygems: "${{ matrix.rubygems }}"
49+
bundler: "${{ matrix.bundler }}"
50+
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
51+
- name: Run tests
52+
run: bundle exec rake test

.tool-versions

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
ruby 2.7.8

gemfiles/vanilla.gemfile

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
git_source(:github) { |repo_name| "https://github.com/#{repo_name}" }
2+
3+
source "https://rubygems.org"
4+
5+
# Root Gemfile is only for local development only. It is not loaded on CI.
6+
# On CI we only need the gemspecs' dependencies (including development dependencies).
7+
# Exceptions, if any, will be found in gemfiles/*.gemfile
8+
9+
gemspec path: "../"

ruby-openid.gemspec

+3
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,7 @@ Gem::Specification.new do |s|
2323
s.rdoc_options << '--main' << 'README.md'
2424

2525
s.add_development_dependency 'minitest', '>= 5'
26+
s.add_development_dependency 'rake', '>= 13'
27+
s.add_development_dependency 'rexml', '~> 3.2'
28+
s.add_development_dependency 'webrick', '~> 1.8'
2629
end

0 commit comments

Comments
 (0)