-
Notifications
You must be signed in to change notification settings - Fork 18
Expand file tree
/
Copy pathaction.yml
More file actions
47 lines (43 loc) · 1.46 KB
/
action.yml
File metadata and controls
47 lines (43 loc) · 1.46 KB
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
name: Setup CI Environment
description: Prepare Ruby, mise tools, and Bundler dependencies for CI jobs.
inputs:
ruby-version:
description: Ruby version to install.
required: false
default: "3.2"
setup-mise:
description: Whether to install tools from .mise.toml.
required: false
default: "true"
bundler-cache:
description: Whether to enable Bundler cache via ruby/setup-ruby.
required: false
default: "true"
working-directory:
description: Directory where bundle install should run.
required: false
default: "."
run-bundle-install:
description: Whether to run bundle install.
required: false
default: "true"
bundle-install-command:
description: Bundle install command to run when enabled.
required: false
default: "bundle install"
runs:
using: composite
steps:
- name: Setup Ruby
uses: ruby/setup-ruby@97ecb7b512899eb71ab1bf2310a624c6f1589ac6 # ruby/setup-ruby@v1.308.0
with:
ruby-version: ${{ inputs.ruby-version }}
bundler-cache: ${{ inputs.bundler-cache }}
- name: Install tools with mise
if: ${{ inputs.setup-mise == 'true' }}
uses: jdx/mise-action@1648a7812b9aeae629881980618f079932869151 # jdx/mise-action@v4.0.1
- name: Bundle install
if: ${{ inputs.run-bundle-install == 'true' && inputs.bundler-cache != 'true' }}
shell: bash
working-directory: ${{ inputs.working-directory }}
run: ${{ inputs.bundle-install-command }}