-
Notifications
You must be signed in to change notification settings - Fork 160
52 lines (48 loc) · 1.6 KB
/
roster-integration.yml
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
name: Roster Integration Workflow
on:
pull_request:
branches:
- main
- 'release-**.x'
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}}
jobs:
integ-roster:
name: Roster Integration Test
runs-on: ubuntu-latest
steps:
- name: Checkout Package
uses: actions/checkout@v2
with:
fetch-depth: 0
- 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: Clean Install
run: npm ci
- name: Run Roster Integration Test in Latest Chrome
run: |
cd integration
npm install
npm run test -- --test=roster --host=sauce-chrome