adding smoke test run on schedule, with discord webhook

This commit is contained in:
Martin McKeaveney 2022-03-29 17:50:52 +01:00
parent 04b8886ce8
commit d2d54d1343
1 changed files with 17 additions and 11 deletions

View File

@ -2,6 +2,9 @@ name: Budibase Smoke Test
on: on:
workflow_dispatch: workflow_dispatch:
schedule:
- cron: "0 5 * * *" # every day at 5AM
jobs: jobs:
release: release:
@ -23,10 +26,13 @@ jobs:
-o packages/builder/cypress.env.json \ -o packages/builder/cypress.env.json \
-L https://api.github.com/repos/budibase/budibase-infra/contents/test/cypress.env.json -L https://api.github.com/repos/budibase/budibase-infra/contents/test/cypress.env.json
wc -l packages/builder/cypress.env.json wc -l packages/builder/cypress.env.json
- run: yarn test:e2e:ci
env: - name: Cypress run
CI: true id: cypress
name: Budibase CI uses: cypress-io/github-action@v2
with:
install: false
command: yarn test:e2e:ci
# TODO: upload recordings to s3 # TODO: upload recordings to s3
# - name: Configure AWS Credentials # - name: Configure AWS Credentials
@ -36,11 +42,11 @@ jobs:
# aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} # aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
# aws-region: eu-west-1 # aws-region: eu-west-1
# TODO look at cypress reporters - name: Discord Webhook Action
# - name: Discord Webhook Action uses: tsickert/discord-webhook@v4.0.0
# uses: tsickert/discord-webhook@v4.0.0 with:
# with: webhook-url: ${{ secrets.BUDI_QA_WEBHOOK }}
# webhook-url: ${{ secrets.PROD_DEPLOY_WEBHOOK_URL }} content: "Smoke test run completed with ${{ steps.cypress.outcome }}. See results at ${{ steps.cypress.dashboardUrl }}"
# content: "Production Deployment Complete: ${{ env.RELEASE_VERSION }} deployed to Budibase Cloud." embed-title: ${{ steps.cypress.outcome }}
# embed-title: ${{ env.RELEASE_VERSION }} embed-color: ${{ steps.cypress.outcome == "success" && '3066993' || '15548997' }}