1
0
Fork 0
mirror of synced 2024-09-08 21:51:58 +12:00
budibase/.github/workflows/smoke_test.yaml

45 lines
1.3 KiB
YAML
Raw Normal View History

2022-08-22 23:01:50 +12:00
name: Budibase Nightly Tests
2022-01-15 03:18:39 +13:00
on:
workflow_dispatch:
schedule:
- cron: "0 5 * * *" # every day at 5AM
2022-01-15 03:18:39 +13:00
jobs:
2022-08-22 23:01:50 +12:00
nightly:
2022-01-15 03:18:39 +13:00
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 from budibase-infra
2022-01-15 03:18:39 +13:00
run: |
curl -H "Authorization: token ${{ secrets.GH_PERSONAL_TOKEN }}" \
-H 'Accept: application/vnd.github.v3.raw' \
-o
-L
wc -l
2022-01-15 03:18:39 +13:00
2022-05-19 06:55:41 +12:00
- uses: actions/upload-artifact@v3
with:
2022-05-19 06:55:41 +12:00
name: Test Reports
path:
2022-01-15 03:18:39 +13:00
2022-08-22 23:01:50 +12:00
# TODO: enable once running in QA test env
# - 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
# - name: Upload test results HTML
# uses: aws-actions/configure-aws-credentials@v1
# run: aws s3 cp packages/builder/cypress/reports/testReport.html s3://{{ secrets.BUDI_QA_REPORTS_BUCKET_NAME }}/$GITHUB_RUN_ID/index.html