Skip to content

Create FUNDING.yml #113

Create FUNDING.yml

Create FUNDING.yml #113

Workflow file for this run

name: Tests
on:
push:
branches: [master]
jobs:
deploy-test-1:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: npm run setup tests/test-1/data.json
- run: |
git config --global user.email "nsakhilesh02@gmail.com"
git config --global user.name "AkhileshNS"
git add -A
git commit -m "Added data.json"
- uses: akhileshns/heroku-deploy@master
with:
heroku_api_key: ${{secrets.HEROKU_API_KEY}}
heroku_app_name: "akhileshns-hd-test-1"
heroku_email: "nsakhilesh02@gmail.com"
appdir: "tests/test-1"
healthcheck: "https://akhileshns-hd-test-1.herokuapp.com/"
env_file: ".env"
env:
HD_CHECK: "true"
- run: npm run test-action https://akhileshns-hd-test-1.herokuapp.com/
deploy-test-2:
runs-on: ubuntu-latest
needs: deploy-test-1
steps:
- uses: actions/checkout@v2
- run: npm run setup tests/test-2/public_html/index.html
- run: |
git config --global user.email "nsakhilesh02@gmail.com"
git config --global user.name "AkhileshNS"
git add -A
git commit -m "Added index.html"
- uses: akhileshns/heroku-deploy@master
with:
heroku_api_key: ${{secrets.HEROKU_API_KEY}}
heroku_app_name: "akhileshns-hd-test-2"
heroku_email: "nsakhilesh02@gmail.com"
appdir: "tests/test-2"
buildpack: "https://github.com/heroku/heroku-buildpack-static.git"
healthcheck: "https://akhileshns-hd-test-2.herokuapp.com/"
delay: 5
- run: npm run test-action https://akhileshns-hd-test-2.herokuapp.com/
deploy-test-3:
runs-on: ubuntu-latest
needs: deploy-test-2
steps:
- uses: actions/checkout@v2
- run: npm run setup tests/test-3/data.json
- run: |
git config --global user.email "nsakhilesh02@gmail.com"
git config --global user.name "AkhileshNS"
git add -A
git commit -m "Added data.json"
- uses: akhileshns/heroku-deploy@master
with:
heroku_api_key: ${{secrets.HEROKU_API_KEY}}
heroku_app_name: "akhileshns-hd-test-3"
heroku_email: "nsakhilesh02@gmail.com"
appdir: "tests/test-3"
usedocker: true
healthcheck: "https://akhileshns-hd-test-3.herokuapp.com/"
- run: npm run test-action https://akhileshns-hd-test-3.herokuapp.com/
deploy-test-4:
runs-on: ubuntu-latest
needs: deploy-test-3
steps:
- uses: actions/checkout@v2
- run: npm run setup tests/test-4/data.json
- run: |
git config --global user.email "nsakhilesh02@gmail.com"
git config --global user.name "AkhileshNS"
git add -A
git commit -m "Added data.json"
- uses: akhileshns/heroku-deploy@master
with:
heroku_api_key: ${{secrets.HEROKU_API_KEY}}
heroku_app_name: "akhileshns-hd-test-4"
heroku_email: "nsakhilesh02@gmail.com"
appdir: "tests/test-4"
healthcheck: "https://akhileshns-hd-test-4.herokuapp.com/health"
checkstring: "ok"
procfile: "web: gunicorn index:app"
- run: npm run test-action https://akhileshns-hd-test-4.herokuapp.com/