Skip to content

ci: deploy should be a step, not a job #92

ci: deploy should be a step, not a job

ci: deploy should be a step, not a job #92

Workflow file for this run

on:
pull_request:
push:
branches: [master]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/cache@v3
id: yarn-cache
with:
path: "**/node_modules"
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}
- name: Run unit tests
run: |
yarn
yarn test
- name: Trigger deploy
if: github.ref == 'refs/heads/main'
env:
deploy_url: ${{ secrets.RENDER_DEPLOY_HOOK_URL }}
run: |
curl "$deploy_url"