Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/main' into rename-title-helper
Browse files Browse the repository at this point in the history
  • Loading branch information
Spone committed Sep 12, 2024
2 parents 0507045 + 90b27a6 commit 3734f89
Show file tree
Hide file tree
Showing 76 changed files with 3,064 additions and 2,111 deletions.
410 changes: 0 additions & 410 deletions .circleci/config.yml

This file was deleted.

177 changes: 0 additions & 177 deletions .circleci/config.yml.erb

This file was deleted.

20 changes: 6 additions & 14 deletions .codeclimate.yml
Original file line number Diff line number Diff line change
@@ -1,22 +1,14 @@
engines:
version: "2"
plugins:
duplication:
enabled: true
config:
languages:
- ruby
- ruby

fixme:
enabled: true

rubocop:
enabled: true
# Check https://github.com/codeclimate/codeclimate-rubocop/branches/all?query=channel%2Frubocop
channel: rubocop-1-31-0

ratings:
paths:
- "**.rb"

exclude_paths:
- spec/**/*
- certs/**/*
exclude_patterns:
- spec/**/*
- certs/**/*
21 changes: 21 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# To get started with Dependabot version updates, you'll need to specify which
# package ecosystems to update and where the package manifests are located.
# Please see the documentation for all configuration options:
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates

version: 2
updates:
- package-ecosystem: "bundler"
directory: "/"
schedule:
interval: "daily"
labels:
- dependencies
- bundler
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "daily"
labels:
- dependencies
- github-actions
42 changes: 42 additions & 0 deletions .github/workflows/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Dependabot

on:
pull_request:
types: [labeled]
permissions:
contents: write
pull-requests: write
jobs:
build:
if: contains(github.event.pull_request.labels.*.name, 'bundler')
runs-on: ubuntu-latest
strategy:
fail-fast: true
matrix:
ruby-version:
- "3.2"

name: Appraisal - Ruby ${{ matrix.ruby-version }}
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.head_ref }}
- name: Set up Ruby ${{ matrix.ruby-version }}
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby-version }}
bundler-cache: true
- name: Update Appraisal gemfiles
run: |
bundle exec appraisal update
- name: Commit gemfiles
run: |
git config --global user.name "Github Workflow"
git config --global user.email "[email protected]"
git add gemfiles/*
git commit -m "Updated Appraisal gemfiles"
- name: Push changes
uses: ad-m/github-push-action@master
with:
branch: ${{ github.head_ref }}
force_with_lease: true
31 changes: 31 additions & 0 deletions .github/workflows/standard.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: StandardRB

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

jobs:
build:
runs-on: ubuntu-latest
permissions:
checks: write
contents: read
strategy:
fail-fast: true
matrix:
ruby-version:
- "3.2"
rails-version:
- "7.1"
env:
BUNDLE_GEMFILE: ${{ github.workspace }}/gemfiles/rails_${{ matrix.rails-version }}.gemfile

name: StandardRB - Ruby ${{ matrix.ruby-version }} on Rails ${{ matrix.rails-version }}
steps:
- name: Run StandardRB
uses: standardrb/standard-ruby-action@v1
with:
ruby-version: ${{ matrix.ruby-version }}
autofix: false
34 changes: 34 additions & 0 deletions .github/workflows/steep.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Steep

on:
push:
pull_request:
types: [opened, reopened]

jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: true
matrix:
ruby-version:
- "3.2"
rails-version:
- "7.1"
env:
BUNDLE_GEMFILE: ${{ github.workspace }}/gemfiles/rails_${{ matrix.rails-version }}.gemfile

name: Steep - Ruby ${{ matrix.ruby-version }} on Rails ${{ matrix.rails-version }}
steps:
- uses: actions/checkout@v4
- name: Set up Ruby ${{ matrix.ruby-version }} on Rails ${{ matrix.rails-version }}
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby-version }}
bundler-cache: true
- name: Verify Ruby Types (Static)
run: |
bundle exec rake steep
- name: Verify Ruby Types (Runtime)
run: |
bundle exec rake rbs:spec
59 changes: 59 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
name: Tests

on:
push:
pull_request:
types: [opened, reopened]

jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
ruby-version:
- "3.0"
- "3.1"
- "3.2"
- "3.3"
rails-version:
- "6.0"
- "6.1"
- "7.0"
- "7.1"
- "7.2"
- "edge"
include:
- ruby-version: "3.3"
rails-version: "7.1"
code-coverage: true
exclude:
- ruby-version: "3.0"
rails-version: "7.2"
- ruby-version: "3.0"
rails-version: "edge"
env:
BUNDLE_GEMFILE: ${{ github.workspace }}/gemfiles/rails_${{ matrix.rails-version }}.gemfile

name: Specs - Ruby ${{ matrix.ruby-version }} on Rails ${{ matrix.rails-version }}
steps:
- uses: actions/checkout@v4
- name: Set up Ruby ${{ matrix.ruby-version }} on Rails ${{ matrix.rails-version }}
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby-version }}
bundler-cache: true
- name: Run RSpec
env:
CC_TEST_REPORTER_ID: ${{ vars.CC_TEST_REPORTER_ID }}
ENABLE_CODE_COVERAGE: true
run: |
bundle exec rspec --format RspecJunitFormatter --out ${{github.workspace}}/rspec-results.xml --format documentation
- uses: paambaati/codeclimate-action@v9
if: matrix.code-coverage
env:
CC_TEST_REPORTER_ID: ${{ vars.CC_TEST_REPORTER_ID }}
with:
coverageLocations: |
${{github.workspace}}/coverage/coverage.json:simplecov
Loading

0 comments on commit 3734f89

Please sign in to comment.