Check Bundler #105838
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
name: Check Bundler | |
on: | |
workflow_dispatch: | |
inputs: | |
bundler_version: | |
description: 'Bundler Version' | |
required: true | |
type: string | |
compat_id: | |
description: 'Compatibility Id in the format 123' | |
required: false | |
default: '' | |
rails_version: | |
description: 'Rails version to use in the format 6.1.0' | |
required: true | |
default: '6.1.0' | |
ruby_version: | |
description: 'Ruby Version' | |
required: true | |
type: string | |
dependencies: | |
description: 'Dependencies in the format cronex:>=0.13.0,fugit:~>1.8,globalid:>=1.0.1,sidekiq:>=6' | |
required: true | |
default: 'cronex:>=0.13.0,fugit:~>1.8,globalid:>=1.0.1,sidekiq:>=6' | |
jobs: | |
check_bundler: | |
runs-on: ubuntu-latest | |
env: | |
RAILS_BUMP_API_KEY: ${{ secrets.RAILS_BUMP_API_KEY }} | |
RAILS_BUMP_API_HOST: "https://api.railsbump.org" | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Set up Ruby ${{ github.event.inputs.ruby_version }} | |
uses: ruby/setup-ruby@v1 | |
with: | |
bundler: none | |
ruby-version: ${{ github.event.inputs.ruby_version }} | |
- name: Install Bundler ${{ github.event.inputs.bundler_version }} | |
run: | | |
gem uninstall --all --force --executables | |
gem install bundler -v ${{ github.event.inputs.bundler_version }} | |
- name: Install dependencies | |
run: | | |
bundle config set --local without 'development,test' | |
bundle _${{ github.event.inputs.bundler_version }}_ install | |
- name: Run check_bundler script | |
run: ./exe/check_bundler.sh --compat_id '${{ github.event.inputs.compat_id }}' --rails_version '${{ github.event.inputs.rails_version }}' --dependencies '${{ github.event.inputs.dependencies }}' |