Skip to content

Commit

Permalink
test daily test alarm
Browse files Browse the repository at this point in the history
  • Loading branch information
dylonChime committed Jan 21, 2025
1 parent 17cd72c commit 416ec94
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions .github/workflows/daily-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,21 +66,24 @@ jobs:
- name: Run test against specified iOS versions
id: tests
run: |
exit 1
id=$(curl -F 'payload=@amazon-chime-sdk-app.ipa' -F name=amazon-chime-sdk-app.ipa -u "${{ secrets.SAUCE_USERNAME }}:${{ secrets.SAUCE_ACCESS_KEY }}" 'https://api.us-west-1.saucelabs.com/v1/storage/upload' |jq '.item.id')
npm install
npm run build
npm run cma -- --app-url "sample.app" --log-level error --tag "@common" --app-id "${id}" --retry --platform-version "${{ matrix.os_list }}"
#npm install
#npm run build
#npm run cma -- --app-url "sample.app" --log-level error --tag "@common" --app-id "${id}" --retry --platform-version "${{ matrix.os_list }}"
continue-on-error: true

- name: Send Notification
uses: slackapi/slack-github-action@v1.25.0
if: failure()
if: false
with:
payload: |
{
"Platform": "iOS",
"Link": "${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}",
"Status": "${{ steps.tests.outcome }}"
}
continue-on-error: true

- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v2
Expand Down Expand Up @@ -119,7 +122,7 @@ jobs:
}]
});
client.send(command).then(() => console.log('Daily test result sent to CloudWatch')).catch(err => {
client.send(command).then(() => console.log('Daily test result sent to CloudWatch: ' + value)).catch(err => {
console.error('Failed to send metric. Error: ', err);
process.exit(1);
});
Expand Down

0 comments on commit 416ec94

Please sign in to comment.