-
Notifications
You must be signed in to change notification settings - Fork 2
57 lines (48 loc) · 1.77 KB
/
check_bundler.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
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 }}'