Skip to content

Bump the github-actions group across 1 directory with 3 updates (#67) #202

Bump the github-actions group across 1 directory with 3 updates (#67)

Bump the github-actions group across 1 directory with 3 updates (#67) #202

Workflow file for this run

# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
# This workflow will download a prebuilt Ruby version, install dependencies and run tests with Rake
# For more information see: https://github.com/marketplace/actions/setup-ruby-jruby-and-truffleruby
name: Ruby
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
permissions: {}
jobs:
rubocop:
name: Rubocop
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: Checkout code
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false
- name: Setup Ruby and install gems
uses: ruby/setup-ruby@4c56a21280b36d862b5fc31348f463d60bdc55d5 # v1.301.0
with:
ruby-version: 3.3.1
bundler-cache: true
- name: Run rubocop
run: |
bundle exec rubocop --parallel
lint-actions:
name: GitHub Actions audit
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false
- name: Run actionlint
uses: rhysd/actionlint@914e7df21a07ef503a81201c76d2b11c789d3fca # v1.7.12
- name: Run zizmor
uses: zizmorcore/zizmor-action@b1d7e1fb5de872772f31590499237e7cce841e8e # v0.5.3
with:
advanced-security: false
test:
name: Tests
runs-on: ubuntu-latest
permissions:
contents: read
env:
CI: true
strategy:
matrix:
ruby-version: ['3.0', '3.3']
services:
redis:
image: redis:4.0-alpine # zizmor: ignore[unpinned-images] -- digest pinning for service images is nontrivial and low risk
ports:
- 6379:6379
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false
- name: Set up Ruby
uses: ruby/setup-ruby@4c56a21280b36d862b5fc31348f463d60bdc55d5 # v1.301.0
with:
ruby-version: ${{ matrix.ruby-version }}
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
- name: Prepare database
run: bin/rails db:setup
- name: Run tests
run: bundle exec rake test
- name: Run performance tests
run: RAILS_ENV=profile bundle exec rake test:performance