Skip to content

update trusted proxies #238

update trusted proxies

update trusted proxies #238

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 install a prebuilt Ruby version, install dependencies, and
# run tests
name: "Test"
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
env:
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}
jobs:
test:
runs-on: ubuntu-latest
services:
postgres:
image: postgres:11-alpine
ports:
- "5432:5432"
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
env:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
env:
RAILS_ENV: test
PGHOST: localhost
PGUSER: postgres
PGPASSWORD: postgres
RAILS_MASTER_KEY: ${{ secrets.RAILS_TEST_KEY }}
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Install Ruby and gems
uses: ruby/setup-ruby@0a29871fe2b0200a17a4497bae54fe5df0d973aa # v1.115.3
with:
bundler-cache: true
- name: Set up database
run: bin/rails db:setup
- name: Precompile assets
run: bundle exec rake assets:precompile
- name: Run tests
run: bin/rake