Sha256: e1a9408c3a3780efac849b310c58a2d32885e8ce94d55a80a4a7bfd71094f038

Contents?: true

Size: 722 Bytes

Versions: 21

Compression:

Stored size: 722 Bytes

Contents

name: "Run rails server"
description: "Run rails server in the background for scans to access"
inputs:
  rails_env:
    description: RAILS_ENV to set. Defaults to ci
    required: false
    default: ci
  database_url:
    description: DATABASE_URL to set
    required: true
runs:
  using: "composite"
  steps:
    - name: "Start server in background"
      shell: bash
      env:
        RAILS_ENV: ${{ inputs.rails_env }}
        DATABASE_URL: ${{ inputs.database_url }}
        SECRET_KEY_BASE: not-actually-secret
      run: bundle exec rails server &

    - name: "Wait for startup"
      shell: bash
      run: sleep 5

    - name: "Verify response working"
      shell: bash
      run: curl http://localhost:3000 -I

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
rails_template_18f-2.0.0 lib/generators/rails_template18f/github_actions/templates/github/actions/run-server/action.yml
rails_template_18f-1.3.0 lib/generators/rails_template18f/github_actions/templates/github/actions/run-server/action.yml
rails_template_18f-1.2.0 lib/generators/rails_template18f/github_actions/templates/github/actions/run-server/action.yml
rails_template_18f-1.1.0 lib/generators/rails_template18f/github_actions/templates/github/actions/run-server/action.yml
rails_template_18f-1.0.0 lib/generators/rails_template18f/github_actions/templates/github/actions/run-server/action.yml
rails_template_18f-0.8.2 lib/generators/rails_template18f/github_actions/templates/github/actions/run-server/action.yml
rails_template_18f-0.8.1 lib/generators/rails_template18f/github_actions/templates/github/actions/run-server/action.yml
rails_template_18f-0.8.0 lib/generators/rails_template18f/github_actions/templates/github/actions/run-server/action.yml
rails_template_18f-0.7.2 lib/generators/rails_template18f/github_actions/templates/github/actions/run-server/action.yml
rails_template_18f-0.7.1 lib/generators/rails_template18f/github_actions/templates/github/actions/run-server/action.yml
rails_template_18f-0.7.0 lib/generators/rails_template18f/github_actions/templates/github/actions/run-server/action.yml
rails_template_18f-0.6.0 lib/generators/rails_template18f/github_actions/templates/github/actions/run-server/action.yml
rails_template_18f-0.5.3 lib/generators/rails_template18f/github_actions/templates/github/actions/run-server/action.yml
rails_template_18f-0.5.2 lib/generators/rails_template18f/github_actions/templates/github/actions/run-server/action.yml
rails_template_18f-0.5.1 lib/generators/rails_template18f/github_actions/templates/github/actions/run-server/action.yml
rails_template_18f-0.5.0 lib/generators/rails_template18f/github_actions/templates/github/actions/run-server/action.yml
rails_template_18f-0.4.1 lib/generators/rails_template18f/github_actions/templates/github/actions/run-server/action.yml
rails_template_18f-0.4.0 lib/generators/rails_template18f/github_actions/templates/github/actions/run-server/action.yml
rails_template_18f-0.3.0 lib/generators/rails_template18f/github_actions/templates/github/actions/run-server/action.yml
rails_template_18f-0.2.0 lib/generators/rails_template18f/github_actions/templates/github/actions/run-server/action.yml