Skip to content

Commit

Permalink
Travis to GHA
Browse files Browse the repository at this point in the history
  • Loading branch information
grdw committed Jan 31, 2024
1 parent b4e0faa commit 8adb61b
Show file tree
Hide file tree
Showing 7 changed files with 73 additions and 39 deletions.
5 changes: 5 additions & 0 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# https://help.github.com/en/articles/about-code-owners
# These owners will be the default owners for everything in
# the repo. Unless a later match takes precedence, they
# will be requested for review when someone opens a PR.
* @WeTransfer/dmx
20 changes: 20 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
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
- package-ecosystem: "docker"
directory: "/"
schedule:
interval: weekly
17 changes: 17 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
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
secrets:
token: ${{ secrets.WT_GITHUB_REPO_RO_PACKAGES_RO }}
30 changes: 30 additions & 0 deletions .github/workflows/validate.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Validate
on:
workflow_call:
secrets:
token:
required: true

jobs:
validate:
name: Validate
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: '3.0'
bundler-cache: true

- name: Install dependencies
run: |
gem update --system
gem install bundler
bundle install --jobs=3 --retry=3 --path=${BUNDLE_PATH:-vendor/bundle}
- name: Run tests
run: |
bundle exec rspec
bundle exec rubocop --fail-level convention
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.

0 comments on commit 8adb61b

Please sign in to comment.