2022-01-14 15:18:39 +01:00
|
|
|
name: Budibase Smoke Test
|
|
|
|
|
|
|
|
on:
|
|
|
|
workflow_dispatch:
|
2022-03-29 18:50:52 +02:00
|
|
|
schedule:
|
|
|
|
- cron: "0 5 * * *" # every day at 5AM
|
|
|
|
|
2022-01-14 15:18:39 +01:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
release:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: Use Node.js 14.x
|
|
|
|
uses: actions/setup-node@v1
|
|
|
|
with:
|
|
|
|
node-version: 14.x
|
|
|
|
- run: yarn
|
|
|
|
- run: yarn bootstrap
|
|
|
|
- run: yarn build
|
|
|
|
- name: Pull cypress.env.yaml from budibase-infra
|
|
|
|
run: |
|
|
|
|
curl -H "Authorization: token ${{ secrets.GH_PERSONAL_TOKEN }}" \
|
|
|
|
-H 'Accept: application/vnd.github.v3.raw' \
|
|
|
|
-o packages/builder/cypress.env.json \
|
|
|
|
-L https://api.github.com/repos/budibase/budibase-infra/contents/test/cypress.env.json
|
2022-01-14 15:25:59 +01:00
|
|
|
wc -l packages/builder/cypress.env.json
|
2022-03-29 18:50:52 +02:00
|
|
|
|
|
|
|
- name: Cypress run
|
|
|
|
id: cypress
|
|
|
|
uses: cypress-io/github-action@v2
|
|
|
|
with:
|
|
|
|
install: false
|
|
|
|
command: yarn test:e2e:ci
|
2022-01-14 15:18:39 +01:00
|
|
|
|
|
|
|
# TODO: upload recordings to s3
|
|
|
|
# - name: Configure AWS Credentials
|
|
|
|
# uses: aws-actions/configure-aws-credentials@v1
|
|
|
|
# with:
|
|
|
|
# aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
|
|
|
|
# aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
|
|
|
|
# aws-region: eu-west-1
|
|
|
|
|
2022-03-29 18:50:52 +02:00
|
|
|
- name: Discord Webhook Action
|
|
|
|
uses: tsickert/discord-webhook@v4.0.0
|
|
|
|
with:
|
|
|
|
webhook-url: ${{ secrets.BUDI_QA_WEBHOOK }}
|
|
|
|
content: "Smoke test run completed with ${{ steps.cypress.outcome }}. See results at ${{ steps.cypress.dashboardUrl }}"
|
|
|
|
embed-title: ${{ steps.cypress.outcome }}
|
|
|
|
embed-color: ${{ steps.cypress.outcome == "success" && '3066993' || '15548997' }}
|
2022-01-14 15:18:39 +01:00
|
|
|
|