Skip to content

When redirecting to PMP, allow_other_host #379

When redirecting to PMP, allow_other_host

When redirecting to PMP, allow_other_host #379

Workflow file for this run

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' }}