-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The dependencies used in CI and by a fresh checkout of the project should be known good, and upgrades should be explicit (by Renovate in our case) so that we can identify clearly the source of breakage (CI failing on Renovate PRs). Fixes #97. --------- Co-authored-by: Carlos Palhares <[email protected]>
- Loading branch information
1 parent
9dfbf45
commit 4568e58
Showing
101 changed files
with
7,584 additions
and
70 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
on: | ||
workflow_call: | ||
secrets: | ||
rubygems_api_key: | ||
required: true | ||
inputs: | ||
before_build: | ||
type: string | ||
required: false | ||
package: | ||
required: true | ||
type: string | ||
workdir: | ||
required: false | ||
type: string | ||
ruby: | ||
default: '["2.7","3.1","3.2"]' | ||
required: false | ||
type: string | ||
gemfiles: | ||
default: '["Gemfile"]' | ||
required: false | ||
type: string | ||
bundler: | ||
default: '["2"]' | ||
required: false | ||
type: string | ||
exclude: | ||
default: '[]' | ||
required: false | ||
type: string | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
name: Ruby ${{ matrix.ruby }} / Bundler ${{ matrix.bundler }} / ${{ matrix.gemfile }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
ruby: ${{ fromJSON(inputs.ruby) }} | ||
gemfile: ${{ fromJSON(inputs.gemfiles) }} | ||
bundler: ${{ fromJSON(inputs.bundler) }} | ||
exclude: ${{ fromJSON(inputs.exclude)}} | ||
env: | ||
BUNDLE_GEMFILE: '${{ matrix.gemfile }}' | ||
BUNDLER_VERSION: '${{ matrix.bundler }}' | ||
RAILS_ENV: test | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Set up Ruby | ||
uses: ruby/setup-ruby@v1 | ||
with: | ||
bundler-cache: true | ||
bundler: ${{ matrix.bundler }} | ||
ruby-version: ${{ matrix.ruby }} | ||
working-directory: ${{ inputs.workdir }} | ||
- name: Before build | ||
if: ${{ inputs.before_build != '' }} | ||
run: '${{ inputs.before_build }}' | ||
- name: Run the build script | ||
working-directory: ${{ inputs.workdir }} | ||
run: bundle exec rake | ||
- name: Ensure license compliance | ||
working-directory: ${{ inputs.workdir }} | ||
run: bundle exec license_finder | ||
|
||
release: | ||
needs: build | ||
runs-on: ubuntu-latest | ||
if: ${{ contains(github.ref, 'refs/tags/v') && contains(github.ref, inputs.package) }} | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: powerhome/publish-rubygems-action@git-safe-directory | ||
env: | ||
RELEASE_COMMAND: rake build release:guard_clean release:rubygem_push | ||
RUBYGEMS_API_KEY: ${{ secrets.rubygems_api_key }} | ||
WORKDIR: ${{ inputs.workdir }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,5 +8,5 @@ | |
|
||
# rspec failure tracking | ||
.rspec_status | ||
Gemfile.lock | ||
|
||
spec/internal/db/*.sqlite |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,10 @@ | ||
require: | ||
- rubocop-powerhome | ||
|
||
Style/FrozenStringLiteralComment: | ||
Exclude: | ||
- 'gemfiles/*' | ||
|
||
Bundler/OrderedGems: | ||
Exclude: | ||
- 'gemfiles/*' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# frozen_string_literal: true | ||
|
||
appraise "rails-6-0" do | ||
gem "rails", "6.0.6.1" | ||
end | ||
|
||
appraise "rails-6-1" do | ||
gem "rails", "6.1.7.4" | ||
end | ||
|
||
appraise "rails-7-0" do | ||
gem "rails", "7.0.6" | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.