build(deps): bump @rails/ujs from 7.0.8 to 7.1.1 #396
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: "Ruby on Rails CI" | |
on: | |
push: | |
branches-ignore: | |
- develop | |
- staging | |
- main | |
pull_request: | |
jobs: | |
unit-test: | |
runs-on: ubuntu-20.04 | |
services: | |
postgres: | |
image: postgis/postgis:11-2.5 | |
ports: | |
- "5432:5432" | |
env: | |
POSTGRES_DB: rails_test | |
POSTGRES_USER: rails | |
POSTGRES_PASSWORD: password | |
env: | |
RAILS_ENV: test | |
DATABASE_URL: "postgis://rails:password@localhost:5432/rails_test" | |
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }} | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Install Ruby and gems | |
uses: ruby/[email protected] | |
with: | |
bundler-cache: true | |
- name: Set up database schema | |
run: bin/rails db:test:prepare | |
- name: Compile assets | |
run: NODE_OPTIONS=--openssl-legacy-provider bin/rails assets:precompile | |
- name: Run unit tests | |
run: bin/rake | |
- name: publish code coverage | |
uses: paambaati/[email protected] | |
with: | |
debug: true | |
if: ${{ github.event_name == 'pull_request' && github.event.pull_request.base.ref == 'develop' }} |