Bump rails-html-sanitizer from 1.6.0 to 1.6.1 #2372
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
# TODO: Don't do this! Use GitHub's encrypted secrets and set the value of the | |
# variable as ${{ secrets.RAILS_MASTER_KEY }} | |
# Ref: https://docs.github.com/en/actions/reference/encrypted-secrets | |
env: | |
RAILS_MASTER_KEY: 02a9ea770b4985659e8ce92699f218dc | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
permissions: | |
contents: read | |
jobs: | |
test: | |
name: Ruby specs | |
runs-on: ubuntu-latest | |
env: | |
DATABASE_URL: postgres://postgres:postgres@localhost/ruby3_rails6_bootstrap_heroku_test | |
RAILS_ENV: test | |
services: | |
db: | |
image: postgres:12 | |
ports: ['5432:5432'] | |
env: | |
POSTGRES_PASSWORD: postgres | |
options: >- | |
--health-cmd pg_isready | |
--health-interval 10s | |
--health-timeout 5s | |
--health-retries 5 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Ruby | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: '3.0.7' | |
bundler-cache: true | |
rubygems: latest | |
- name: Set up Node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: '20' | |
cache: 'yarn' | |
- name: Yarn | |
run: yarn | |
- name: Set up Database | |
run: bundle exec rails db:prepare | |
- name: Run specs | |
run: bundle exec rake spec | |
- name: Coveralls | |
uses: coverallsapp/github-action@v2 | |
with: | |
github-token: ${{ secrets.github_token }} | |
path-to-lcov: 'coverage/lcov.info' |