Skip to content

Bump activesupport from 8.1.2.1 to 8.1.3 in the ruby-all-dependencies group across 1 directory #1484

Bump activesupport from 8.1.2.1 to 8.1.3 in the ruby-all-dependencies group across 1 directory

Bump activesupport from 8.1.2.1 to 8.1.3 in the ruby-all-dependencies group across 1 directory #1484

Workflow file for this run

name: "Ruby CI"
on:
pull_request:
branches: [main]
paths:
- "**.rb"
- "**Gemfile"
- "**Rakefile"
- ".github/workflows/ruby-ci.yml"
- "infra/**"
- ".mise.toml"
merge_group:
types: [checks_requested]
push:
branches: [main]
jobs:
setup:
name: "Setup"
runs-on: ubuntu-24.04-arm
outputs:
ruby-version: ${{ steps.set-ruby-version.outputs.ruby-version }}
spec-matrix: ${{ steps.build-matrix.outputs.spec-matrix }}
steps:
- name: Checkout code
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Initialise mise and cache `hcl2json`
uses: jdx/mise-action@1648a7812b9aeae629881980618f079932869151 # v4.0.1
with:
install_args: hcl2json
- name: Set Ruby version
id: set-ruby-version
run: |
echo "ruby-version=$(mise current ruby)" >> "$GITHUB_OUTPUT"
- name: Build spec matrix
id: build-matrix
run: |
spec_dirs_json="$(find . -type d -name 'spec' -not -path '*vendor*' | sed 's|/spec$||g' | jq -Rnc '[inputs]')"
echo "spec-matrix=$spec_dirs_json" >> "$GITHUB_OUTPUT"
ruby-lint:
name: "Ruby Lint"
runs-on: ubuntu-24.04-arm
needs: setup
steps:
- name: Checkout code
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Install Ruby and gems at root
uses: ruby/setup-ruby@09a7688d3b55cf0e976497ff046b70949eeaccfd # v1.288.0
with:
bundler-cache: true
ruby-version: ${{needs.setup.outputs.ruby-version}}
- name: Run rubocop
run: make lint_ruby
ruby-spec:
name: "Rspec"
runs-on: ubuntu-24.04-arm
needs: setup
strategy:
fail-fast: false
matrix:
spec_target: ${{ fromJSON(needs.setup.outputs.spec-matrix) }}
steps:
- name: Checkout code
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Set up hcl2json
uses: jdx/mise-action@1648a7812b9aeae629881980618f079932869151 # v4.0.1
with:
install_args: hcl2json
- name: "Install Ruby and gems in ${{matrix.spec_target}}"
uses: ruby/setup-ruby@09a7688d3b55cf0e976497ff046b70949eeaccfd # v1.288.0
with:
bundler-cache: true
ruby-version: ${{needs.setup.outputs.ruby-version}}
working-directory: "${{matrix.spec_target}}"
- name: Run specs
run: |
cd "${{matrix.spec_target}}"
bundle exec rspec