Heroku Stack upgrade, get CI tests running #773
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: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
jobs: | |
build: | |
name: Build and test | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: adambirds/[email protected] | |
with: | |
compose-file: "./compose.yml" | |
down-flags: "--volumes" | |
test-container: app | |
test-command: "/app/ci.sh" | |
- name: Deploy to staging Heroku | |
env: | |
HEROKU_API_TOKEN: ${{ secrets.HEROKU_API_TOKEN }} | |
HEROKU_APP_NAME: 'staging-makeworks' | |
if: github.ref == 'refs/heads/master' && job.status == 'success' | |
run: git push https://heroku:[email protected]/$HEROKU_APP_NAME.git origin/master:master --force |