Skip to content

Bump loofah from 2.24.1 to 2.25.2 #4851

Bump loofah from 2.24.1 to 2.25.2

Bump loofah from 2.24.1 to 2.25.2 #4851

Workflow file for this run

name: Main build
on:
pull_request:
types: [opened, reopened, synchronize]
push:
branches: ["supporter_level_goal"]
concurrency:
group: build--${{ github.head_ref || github.ref }}
cancel-in-progress: true
jobs:
build:
env:
CUSTOM_RUBY_VERSION: ${{ matrix.ruby }}
RAILS_ENV: test
# normally, you'd want to use commitchange_development_legacy but that database hasn't been created
# and isn't being for some reason on Rails 5.2+. We'll just use this one.
BUILD_DATABASE_URL: postgres://admin:password@localhost/commitchange_test
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-24.04, macos-15-intel, macos-latest] # macos-15-intel is the last Intel mac version
node: [16]
ruby: ['3.3.12']
postgres: ['16']
fail-fast: false
steps:
- uses: actions/checkout@v7
- uses: dorny/paths-filter@v4
id: changes
with:
filters: |
ruby:
- 'app/**'
- 'bin/**'
- 'config/**'
- 'db/**'
- 'gems/**'
- 'lib/**'
- 'public/**'
- 'script/**'
- 'spec/**'
- '.ruby-version'
- '.rspec'
- 'config.ru'
- 'Gemfile'
- 'Gemfile.lock'
- 'Rakefile'
# include workflows because changes to workflows could break a build
- '.github/workflows/**'
js:
- '**/*.js*'
- '**/*.es6'
- '**/*.ts*'
- '**/*.json'
- package.json
- yarn.lock
- '.nvmrc'
- '.babelrc'
- '.bootstraprc'
- '.browserlistrc'
# include Gemfiles because some of the Gems could break yarn build
- 'Gemfile'
- 'Gemfile.lock'
# include workflows because changes to workflows could break a build
- '.github/workflows/**'
- name: Setup PostgreSQL with PostgreSQL extensions and unprivileged user
uses: ikalnytskyi/action-setup-postgres@v8
with:
postgres-version: ${{ matrix.postgres }}
username: admin
password: password
database: commitchange_test
- uses: actions/setup-node@v7
with:
node-version: ${{ matrix.node }}
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- run: bin/setup
- if: steps.changes.outputs.ruby == 'true'
name: run zeitwerk:check
run: bin/rails zeitwerk:check
- if: steps.changes.outputs.ruby == 'true'
name: run spec
run: bin/rails spec
- continue-on-error: true
if: steps.changes.outputs.ruby == 'true'
run: script/compile-assets.sh
- if: steps.changes.outputs.js == 'true'
run: yarn build
- if: steps.changes.outputs.js == 'true'
run: yarn jest