Build System Test Canary #29926
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
# Description: this workflow runs build mega-apps that have all the connected components. | |
name: Build System Test Canary | |
permissions: | |
id-token: write # This is required for aws-actions/configure-aws-credentials | |
on: | |
schedule: | |
- cron: '*/30 * * * *' # Run every 30 minutes | |
jobs: | |
build: | |
uses: ./.github/workflows/reusable-build-system-test.yml | |
with: | |
dist-tag: latest | |
log-failure-metric: | |
# Send a failure data point to metric BuildSystemTestFailure in github-workflows@ us-east-2 | |
runs-on: ubuntu-latest | |
environment: ci | |
needs: build | |
if: ${{ failure() }} | |
steps: | |
- name: Log failure data point to metric BuildSystemTestFailure | |
uses: aws-amplify/amplify-ui/.github/actions/log-metric@main | |
with: | |
metric-name: BuildSystemTestFailure | |
value: 1 | |
role-to-assume: ${{ secrets.METRIC_LOGGER_ROLE_ARN }} | |
aws-region: us-east-2 | |
log-success-metric: | |
# Send a success data point to metric BuildSystemTestFailure in github-workflows@ us-east-2 | |
runs-on: ubuntu-latest | |
environment: ci | |
needs: build | |
if: ${{ success() }} | |
steps: | |
- name: Log success data point to metric BuildSystemTestFailure | |
uses: aws-amplify/amplify-ui/.github/actions/log-metric@main | |
with: | |
metric-name: BuildSystemTestFailure | |
value: 0 | |
role-to-assume: ${{ secrets.METRIC_LOGGER_ROLE_ARN }} | |
aws-region: us-east-2 |