forked from aws/amazon-chime-sdk-js
-
Notifications
You must be signed in to change notification settings - Fork 0
84 lines (80 loc) · 3.1 KB
/
prev-version-integration.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
name: Previous Version Integration Tests Workflow
on:
schedule:
# More information on cron https://crontab.guru/
- cron: '0 1 * * *'
env:
SELENIUM_GRID_PROVIDER: saucelabs
CLOUD_WATCH_METRIC: false
TEST_TYPE: Github-Action
SAUCE_USERNAME: ${{secrets.SAUCE_USERNAME}}
SAUCE_ACCESS_KEY: ${{secrets.SAUCE_ACCESS_KEY}}
MESSAGING_USER_ARN: ${{secrets.MESSAGING_USER_ARN}}
jobs:
prev-version-integ:
name: Previous Version Integration Tests
runs-on: ubuntu-latest
steps:
- name: Setup Node.js - 16.x
uses: actions/setup-node@v1
with:
node-version: 16.x
- name: Checkout Package
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Get previous version
id: prev
run: |
prev_version=$(.github/script/get-prev-version)
echo "Previous version:" $prev_version
echo ::set-output name=prev_version::$prev_version
- name: Create a Job ID
id: create-job-id
uses: filipstefansson/uuid-action@ce29ebbb0981ac2448c2e406e848bfaa30ddf04c
- name: Set JOB_ID Env Variable
run: echo "JOB_ID=${{ steps.create-job-id.outputs.uuid }}" >> $GITHUB_ENV
- name: Echo Job ID
run: echo "${{ steps.create-job-id.outputs.uuid }}"
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v1
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: us-east-1
- name: Setup Sauce Connect
uses: saucelabs/sauce-connect-action@v1
with:
username: ${{ secrets.SAUCE_USERNAME }}
accessKey: ${{ secrets.SAUCE_ACCESS_KEY }}
noSSLBumpDomains: all
tunnelIdentifier: ${{ steps.create-job-id.outputs.uuid }}
- name: Install Kite
run: integration/js/script/install-kite
- name: Setup
run: git checkout tags/v${{ steps.prev.outputs.prev_version }}
- name: Pack the Chime SDK and install the tarball into the Demo
run: |
npm run build
npm pack
cd demos/browser
npm uninstall amazon-chime-sdk-js
npm install ../../amazon-chime-sdk-js-${{ steps.prev.outputs.prev_version }}.tgz
- name: Clean Install
run: npm ci
- name: Run Audio Integration Test
run: npm run test:integration-audio
- name: Run Video Integ Test
run: npm run test:integration-video
- name: Run Content Share Integration Test Job One
run: npm run test:integration-content-share-test-suite-one
- name: Run Content Share Integration Test Job Two
run: npm run test:integration-content-share-test-suite-two
- name: Run Data Message Integration Test
run: npm run test:integration-data-message
- name: Run Meeting Readiness Checker Integration Test
run: npm run test:integration-meeting-readiness-checker
- name: Setup userArn
run: integration/js/script/test-setup
- name: Run Messaging Integration Test
run: npm run test:integration-messaging