changing assert to with #4
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: Cypress Test Deploy To Render | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: | |
- main | |
jobs: | |
ci: | |
name: Cypress Test Deploy To Render | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Test | |
run: | | |
npm install | |
npm run test-component | |
- name: Deploy | |
# Only run this step if the branch is main | |
if: github.ref == 'refs/heads/main' | |
env: | |
deploy_url: ${{ secrets.RENDER_DEPLOY_HOOK_URL }} | |
run: | | |
curl "$deploy_url" |