Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Travis to GHA #35

Merged
merged 3 commits into from
Feb 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
---
version: 2
updates:
- package-ecosystem: github-actions
directory: /
schedule:
interval: daily
time: "10:00"
timezone: Europe/Amsterdam
- package-ecosystem: bundler
directory: /
registries: "*"
schedule:
interval: daily
time: "09:00"
timezone: Europe/Amsterdam
15 changes: 15 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: CI
on:
pull_request:
branches:
- master
# dependabot PRs only have read permission so cannot run this workflow.
paths-ignore:
- "**/*.md"
- ".gitignore"
- "README.md"
- ".env.example"
- "docs/*"
jobs:
validate:
uses: ./.github/workflows/validate.yml
28 changes: 28 additions & 0 deletions .github/workflows/validate.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Validate
on:
workflow_call:

jobs:
validate:
name: Validate
runs-on: ubuntu-latest
strategy:
matrix:
ruby-version:
- '2.6'
- '2.7'
- '3.0'
- '3.2'
- '3.3'
steps:
- uses: actions/checkout@v4

- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby-version }}
bundler-cache: true

- name: Run tests
run: |
bundle exec rspec
8 changes: 1 addition & 7 deletions apiculture.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,7 @@ Gem::Specification.new do |s|
# Prevent pushing this gem to RubyGems.org.
# To allow pushes either set the 'allowed_push_host'
# To allow pushing to a single host or delete this section to allow pushing to any host.
if s.respond_to?(:metadata)
s.metadata['allowed_push_host'] = 'https://rubygems.org'
else
raise 'RubyGems 2.0 or newer is required to protect against ' \
'public gem pushes.'
end

s.metadata['allowed_push_host'] = 'https://rubygems.org'
s.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^spec/}) }
s.extra_rdoc_files = [
'LICENSE.txt',
Expand Down
16 changes: 0 additions & 16 deletions gemfiles/Gemfile.rack-1.x

This file was deleted.

16 changes: 0 additions & 16 deletions gemfiles/Gemfile.rack-2.x

This file was deleted.