Browser Compatibility Test #1087
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
name: Browser Compatibility Test | |
on: | |
schedule: | |
# More information on cron https://crontab.guru/ | |
# GitHub actions is using UTC time. Scheduling action at 5 am PST | |
- cron: '0 13 * * *' | |
env: | |
SELENIUM_GRID_PROVIDER: saucelabs | |
CLOUD_WATCH_METRIC: false | |
TEST_TYPE: Browser-Compatibility-Test | |
SAUCE_USERNAME: ${{secrets.SAUCE_USERNAME}} | |
SAUCE_ACCESS_KEY: ${{secrets.SAUCE_ACCESS_KEY}} | |
MESSAGING_USER_ARN: ${{secrets.MESSAGING_USER_ARN}} | |
SLACK_JS_SDK_DEV_CORE_WEBHOOK: ${{secrets.SLACK_JS_SDK_DEV_CORE_WEBHOOK}} | |
jobs: | |
browser-compatibility-audio: | |
name: Audio Compatibility Test | |
runs-on: ubuntu-latest | |
outputs: | |
job-status: ${{ job.status }} | |
steps: | |
- name: Checkout Package | |
uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- name: Setup GitHub Actions Host | |
uses: ./.github/actions/setup-integration-test | |
with: | |
sauce-username: ${{ secrets.SAUCE_USERNAME }} | |
sauce-access-key: ${{ secrets.SAUCE_ACCESS_KEY }} | |
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY }} | |
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | |
- name: Run Audio Compatibility Test | |
run: npm run test:browser-compatibility-audio | |
browser-compatibility-video: | |
name: Video Compatibility Test | |
runs-on: ubuntu-latest | |
outputs: | |
job-status: ${{ job.status }} | |
steps: | |
- name: Checkout Package | |
uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- name: Setup GitHub Actions Host | |
uses: ./.github/actions/setup-integration-test | |
with: | |
sauce-username: ${{ secrets.SAUCE_USERNAME }} | |
sauce-access-key: ${{ secrets.SAUCE_ACCESS_KEY }} | |
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY }} | |
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | |
- name: Run Video Compatibility Test | |
run: npm run test:browser-compatibility-video | |
browser-compatibility-content-share: | |
name: Content Share Compatibility Test | |
runs-on: ubuntu-latest | |
needs: [ browser-compatibility-video ] | |
if: always() | |
outputs: | |
job-status: ${{ job.status }} | |
steps: | |
- name: Checkout Package | |
uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- name: Setup GitHub Actions Host | |
uses: ./.github/actions/setup-integration-test | |
with: | |
sauce-username: ${{ secrets.SAUCE_USERNAME }} | |
sauce-access-key: ${{ secrets.SAUCE_ACCESS_KEY }} | |
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY }} | |
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | |
- name: Run Content Share Compatibility Test | |
run: npm run test:browser-compatibility-content-share | |
browser-compatibility-data-message: | |
name: Data Message Compatibility Test | |
runs-on: ubuntu-latest | |
needs: [ browser-compatibility-content-share ] | |
if: always() | |
outputs: | |
job-status: ${{ job.status }} | |
steps: | |
- name: Checkout Package | |
uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- name: Setup GitHub Actions Host | |
uses: ./.github/actions/setup-integration-test | |
with: | |
sauce-username: ${{ secrets.SAUCE_USERNAME }} | |
sauce-access-key: ${{ secrets.SAUCE_ACCESS_KEY }} | |
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY }} | |
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | |
- name: Run Data Message Compatibility Test | |
run: npm run test:browser-compatibility-data-message | |
browser-compatibility-meeting-readiness-checker: | |
name: Meeting Readiness Checker Compatibility Test | |
runs-on: ubuntu-latest | |
needs: [ browser-compatibility-data-message ] | |
if: always() | |
outputs: | |
job-status: ${{ job.status }} | |
steps: | |
- name: Checkout Package | |
uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- name: Setup GitHub Actions Host | |
uses: ./.github/actions/setup-integration-test | |
with: | |
sauce-username: ${{ secrets.SAUCE_USERNAME }} | |
sauce-access-key: ${{ secrets.SAUCE_ACCESS_KEY }} | |
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY }} | |
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | |
- name: Run Meeting Readiness Checker Compatibility Test | |
run: npm run test:browser-compatibility-meeting-readiness-checker | |
browser-compatibility-background-blur: | |
name: Background Blur Compatibility Test | |
runs-on: ubuntu-latest | |
needs: [ browser-compatibility-meeting-readiness-checker ] | |
if: always() | |
outputs: | |
job-status: ${{ job.status }} | |
steps: | |
- name: Checkout Package | |
uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- name: Setup GitHub Actions Host | |
uses: ./.github/actions/setup-integration-test | |
with: | |
sauce-username: ${{ secrets.SAUCE_USERNAME }} | |
sauce-access-key: ${{ secrets.SAUCE_ACCESS_KEY }} | |
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY }} | |
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | |
- name: Run Background Blur Compatibility Test | |
run: npm run test:browser-compatibility-background-blur | |
browser-compatibility-linux-audio: | |
name: Linux Audio Compatibility Test | |
runs-on: ubuntu-latest | |
needs: [ browser-compatibility-audio ] | |
if: always() | |
outputs: | |
job-status: ${{ job.status }} | |
steps: | |
- name: Checkout Package | |
uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- name: Setup GitHub Actions Host | |
uses: ./.github/actions/setup-integration-test | |
with: | |
sauce-username: ${{ secrets.SAUCE_USERNAME }} | |
sauce-access-key: ${{ secrets.SAUCE_ACCESS_KEY }} | |
sauce-rest-url: https://us-east-1.saucelabs.com/rest/v1 | |
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY }} | |
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | |
- name: Run Linux Audio Compatibility Test | |
run: npm run test:linux-browser-compatibility-audio | |
browser-compatibility-linux-video: | |
name: Linux Video Compatibility Test | |
runs-on: ubuntu-latest | |
needs: [ browser-compatibility-linux-audio ] | |
if: always() | |
outputs: | |
job-status: ${{ job.status }} | |
steps: | |
- name: Checkout Package | |
uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- name: Setup GitHub Actions Host | |
uses: ./.github/actions/setup-integration-test | |
with: | |
sauce-username: ${{ secrets.SAUCE_USERNAME }} | |
sauce-access-key: ${{ secrets.SAUCE_ACCESS_KEY }} | |
sauce-rest-url: https://us-east-1.saucelabs.com/rest/v1 | |
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY }} | |
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | |
- name: Run Linux Video Compatibility Test | |
run: npm run test:linux-browser-compatibility-video | |
browser-compatibility-linux-content-share: | |
name: Linux Content Share Compatibility Test | |
runs-on: ubuntu-latest | |
needs: [ browser-compatibility-linux-video ] | |
if: always() | |
outputs: | |
job-status: ${{ job.status }} | |
steps: | |
- name: Checkout Package | |
uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- name: Setup GitHub Actions Host | |
uses: ./.github/actions/setup-integration-test | |
with: | |
sauce-username: ${{ secrets.SAUCE_USERNAME }} | |
sauce-access-key: ${{ secrets.SAUCE_ACCESS_KEY }} | |
sauce-rest-url: https://us-east-1.saucelabs.com/rest/v1 | |
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY }} | |
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | |
- name: Run Linux Content Share Compatibility Test | |
run: npm run test:linux-browser-compatibility-content-share | |
browser-compatibility-linux-other: | |
name: Linux Other Compatibility Test | |
runs-on: ubuntu-latest | |
needs: [ browser-compatibility-linux-content-share ] | |
if: always() | |
outputs: | |
job-status: ${{ job.status }} | |
steps: | |
- name: Checkout Package | |
uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- name: Setup GitHub Actions Host | |
uses: ./.github/actions/setup-integration-test | |
with: | |
sauce-username: ${{ secrets.SAUCE_USERNAME }} | |
sauce-access-key: ${{ secrets.SAUCE_ACCESS_KEY }} | |
sauce-rest-url: https://us-east-1.saucelabs.com/rest/v1 | |
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY }} | |
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | |
- name: Run Linux Other Compatibility Test | |
run: npm run test:linux-browser-compatibility-other | |
browser-compatibility-results-report: | |
name: Browser Compatibility Results Report | |
runs-on: ubuntu-latest | |
needs: [ browser-compatibility-audio, browser-compatibility-video, browser-compatibility-content-share, browser-compatibility-data-message, | |
browser-compatibility-meeting-readiness-checker, browser-compatibility-background-blur, browser-compatibility-linux-audio, browser-compatibility-linux-video, | |
browser-compatibility-linux-content-share, browser-compatibility-linux-other ] | |
if: always() | |
env: | |
WORKFLOW_JOBS_STATUS: success | |
WORKFLOW_URL: $GITHUB_SERVER_URL/$GITHUB_REPOSITORY/actions/runs/$GITHUB_RUN_ID | |
steps: | |
- name: Checkout Package | |
uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- name: Setup Node.js - 20.x | |
uses: actions/setup-node@v1 | |
with: | |
node-version: 20.x | |
- name: Gather Job Status Data | |
run: > | |
if [[ | |
"${{ needs.browser-compatibility-audio.outputs.job-status }}" != "success" || | |
"${{ needs.browser-compatibility-video.outputs.job-status }}" != "success" || | |
"${{ needs.browser-compatibility-content-share.outputs.job-status }}" != "success" || | |
"${{ needs.browser-compatibility-data-message.outputs.job-status }}" != "success" || | |
"${{ needs.browser-compatibility-meeting-readiness-checker.outputs.job-status }}" != "success" || | |
"${{ needs.browser-compatibility-linux-audio.outputs.job-status }}" != "success" || | |
"${{ needs.browser-compatibility-linux-video.outputs.job-status }}" != "success" || | |
"${{ needs.browser-compatibility-linux-content-share.outputs.job-status }}" != "success" || | |
"${{ needs.browser-compatibility-linux-other.outputs.job-status }}" != "success" | |
]]; then | |
echo "Workflow Job Status is failure"; | |
echo "WORKFLOW_JOBS_STATUS=failure" >> $GITHUB_ENV; | |
else | |
echo "Workflow Job Status is success"; | |
fi | |
- name: Install Axios | |
run: npm install axios | |
- name: Send Slack Message | |
run: node .github/script/send-test-report.js ${{ secrets.SLACK_JS_SDK_DEV_CORE_WEBHOOK }} ${{ env.WORKFLOW_URL}} ${{ env.WORKFLOW_JOBS_STATUS }} |