/test-on-heroku

Github Action to test a branch on Heroku

Primary LanguageJavaScriptMIT LicenseMIT

test-on-heroku

Usage

In order to use the action in your workflow, just add in your .github/workflows/YOURACTION.yml

name: Test Heroku

on:
  push:
    branches:
      - ${{secrets.BRANCH_TO_TEST}}

jobs:
  build:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2
      - uses: sarveshwarge/test-on-heroku@v0.0.1 # This is the action
        with:
          heroku_api_key: ${{secrets.HEROKU_API_KEY}}
          heroku_app_name: ${{secrets.HEROKU_APP_NAME}}  #Must be unique in Heroku
          heroku_email: ${{secrets.HEROKU_EMAIL}}
          buildpack: ${{secrets.BUILDPACK}}
          branch: ${{secrets.BRANCH_TO_TEST}}
          dontuseforce: false #OPTIONAL and DEFAULT - false
          usedocker: false #OPTIONAL and DEFAULT - false
          appdir: "" #OPTIONAL and DEFAULT - "". This is useful if the api you're deploying is in a subfolder
          docker_heroku_process_type: "" #OPTIONAL and DEFAULT - "web"