Skip to content

Commit

Permalink
Seperate Github Actions into multiple workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
michhyun1 committed Feb 22, 2021
1 parent 42a786b commit 96cf13e
Show file tree
Hide file tree
Showing 9 changed files with 418 additions and 346 deletions.
55 changes: 55 additions & 0 deletions .github/workflows/audio-integration.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
name: Audio Integration Workflow

on:
pull_request:
branches:
- master
- release-1.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-audio:
name: Audio Integration Test
runs-on: ubuntu-latest

steps:
- 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@master
with:
username: ${{ secrets.SAUCE_USERNAME }}
accessKey: ${{ secrets.SAUCE_ACCESS_KEY }}
noSSLBumpDomains: all
tunnelIdentifier: ${{ steps.create-job-id.outputs.uuid }}
- name: Checkout Package
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Setup Node.js - 12.x
uses: actions/setup-node@v1
with:
node-version: 12.x
- name: Install Kite
run: integration/js/script/install-kite
- name: Clean Install
run: npm ci
- name: Run Audio Integration Test
run: npm run test:integration-audio
29 changes: 29 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions

name: Build and Test Workflow

on:
pull_request:
branches:
- master
- release-1.x

jobs:
build:
name: Build and Run Unit Tests
runs-on: ubuntu-latest

steps:
- name: Checkout Package
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Using Node.js 12.x
uses: actions/setup-node@v1
with:
node-version: 12.x
- name: Clean Install
run: npm ci
- name: Build
run: npm run build:release
55 changes: 55 additions & 0 deletions .github/workflows/content-share-integration.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
name: Content Share Integration Workflow

on:
pull_request:
branches:
- master
- release-1.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-content-share:
name: Content Share Integration Test
runs-on: ubuntu-latest

steps:
- 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@master
with:
username: ${{ secrets.SAUCE_USERNAME }}
accessKey: ${{ secrets.SAUCE_ACCESS_KEY }}
noSSLBumpDomains: all
tunnelIdentifier: ${{ steps.create-job-id.outputs.uuid }}
- name: Checkout Package
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Setup Node.js - 12.x
uses: actions/setup-node@v1
with:
node-version: 12.x
- name: Install Kite
run: integration/js/script/install-kite
- name: Clean Install
run: npm ci
- name: Run Content Share Integration Test
run: npm run test:integration-content-share
Loading

0 comments on commit 96cf13e

Please sign in to comment.