forked from cerc-io/snowballtools-base
Nabarun Gogoi
72f1abcdf6
* Add a script to deploy test records * Add checks for ApplicationDeploymentRecord and the deployment URL * Add a CI workflow to run the app deployment test * Update test deployment request record config * Add test for deployment removal * Update test deployment request record * Increase max retries * Add retries when checking if URL is up or down * Rename test script * Run webapp deployment test CI on PR * Remove unnecessary jq installation step from CI * Revert "Run webapp deployment test CI on PR" This reverts commit 01f373501a95b95cf0abc1dee8fed639ec62daf5. * Add a step for Slack alerts on a CI failure * Add a workflow dispatch for manual trigger * Update workflow title and remove trigger on main * Document deployment test setup --------- Co-authored-by: Prathamesh Musale <prathamesh.musale0@gmail.com>
40 lines
1.2 KiB
YAML
40 lines
1.2 KiB
YAML
name: Test webapp deployment
|
|
|
|
on:
|
|
schedule:
|
|
- cron: '0 3 * * *'
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
test_app_deployment:
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
matrix:
|
|
node-version: [20.x]
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- name: Use Node.js ${{ matrix.node-version }}
|
|
uses: actions/setup-node@v3
|
|
with:
|
|
node-version: ${{ matrix.node-version }}
|
|
- name: Install dependencies
|
|
run: yarn
|
|
- name: Test webapp deployment
|
|
run: ./packages/deployer/test/test-webapp-deployment-undeployment.sh
|
|
- name: Notify Vulcanize Slack on CI failure
|
|
if: ${{ always() && github.ref_name == 'main' }}
|
|
uses: ravsamhq/notify-slack-action@v2
|
|
with:
|
|
status: ${{ job.status }}
|
|
notify_when: 'failure'
|
|
env:
|
|
SLACK_WEBHOOK_URL: ${{ secrets.VULCANIZE_SLACK_CI_ALERTS_WEBHOOK }}
|
|
- name: Notify DeepStack Slack on CI failure
|
|
if: ${{ always() && github.ref_name == 'main' }}
|
|
uses: ravsamhq/notify-slack-action@v2
|
|
with:
|
|
status: ${{ job.status }}
|
|
notify_when: 'failure'
|
|
env:
|
|
SLACK_WEBHOOK_URL: ${{ secrets.DEEPSTACK_SLACK_CI_ALERTS_WEBHOOK }}
|