-
Notifications
You must be signed in to change notification settings - Fork 476
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Seperate Github Actions into multiple workflows
- Loading branch information
Showing
9 changed files
with
418 additions
and
346 deletions.
There are no files selected for viewing
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
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 |
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
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 |
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
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 |
Oops, something went wrong.