Skip to content

bump step-security/harden-runner from 2.12.0 to 2.13.3 #137

bump step-security/harden-runner from 2.12.0 to 2.13.3

bump step-security/harden-runner from 2.12.0 to 2.13.3 #137

Workflow file for this run

name: CI
on:
push:
branches: [master]
pull_request:
branches: [master]
jobs:
lint:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- uses: ruby/setup-ruby@d697be2f83c6234b20877c3b5eac7a7f342f0d0c # v1.269.0
with:
ruby-version: "3.4"
bundler-cache: true
- run: bundle exec rubocop
tests:
needs: lint
runs-on: ubuntu-24.04
strategy:
fail-fast: false
matrix:
ruby: ["ruby-3.2", "ruby-3.3", "ruby-3.4", "jruby-9.4"]
activerecord: ["6.1", "7.0", "7.1", "7.2", "8.0"]
postgresql: ["13", "14", "15", "16", "17"]
exclude:
# fails due to "ArgumentError: when initializing an Active Record adapter with a config hash, that should be the only argument" in db:schema:load
- ruby: "jruby-9.4"
activerecord: "7.2"
- ruby: "jruby-9.4"
activerecord: "8.0"
name: ${{ matrix.ruby }}, activerecord-${{ matrix.activerecord }}, postgresql-${{ matrix.postgresql }}
services:
db:
image: postgres:${{ matrix.postgresql }}
env:
POSTGRES_HOST_AUTH_METHOD: trust
POSTGRES_DB: jsonb_accessor
ports: ['5432:5432']
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- run: echo "gem 'activerecord', '~> ${{ matrix.activerecord }}'" > Gemfile.local
- if: matrix.activerecord == '6.1' # see https://github.com/rails/rails/pull/54264#issuecomment-2596149819
run: echo "gem 'concurrent-ruby', '< 1.3.5'" > Gemfile.local
- uses: ruby/setup-ruby@d697be2f83c6234b20877c3b5eac7a7f342f0d0c # v1.269.0
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- run: bundle exec rake db:schema:load
- run: bundle exec rake spec