-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test(e2e): run datachannel serialization tests
- Loading branch information
1 parent
6ca38d3
commit d9d9407
Showing
32 changed files
with
9,853 additions
and
305 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,39 @@ | ||
name: "BrowserStack Test" | ||
on: [push, pull_request] | ||
jobs: | ||
ubuntu-job: | ||
name: "BrowserStack Test on Ubuntu" | ||
runs-on: ubuntu-latest # Can be self-hosted runner also | ||
steps: | ||
- name: "BrowserStack Env Setup" # Invokes the setup-env action | ||
uses: browserstack/github-actions/setup-env@master | ||
with: | ||
username: ${{ secrets.BROWSERSTACK_USERNAME }} | ||
access-key: ${{ secrets.BROWSERSTACK_ACCESS_KEY }} | ||
|
||
- name: "BrowserStack Local Tunnel Setup" # Invokes the setup-local action | ||
uses: browserstack/github-actions/setup-local@master | ||
with: | ||
local-testing: start | ||
local-identifier: peerjs-${{ github.run_id }}-${{ github.run_attempt }} | ||
|
||
# The next 3 steps are for building the web application to be tested and starting the web server on the runner environment | ||
|
||
- name: "Checkout the repository" | ||
uses: actions/checkout@v2 | ||
|
||
- name: "Building web application to be tested" | ||
run: npm install && npm run build | ||
|
||
- name: "Running application under test" | ||
run: npx http-server -p 3000 --cors & | ||
|
||
- name: "Running test on BrowserStack" # Invokes the actual test script that would run on BrowserStack browsers | ||
run: npm run e2e:bstack # See sample test script above | ||
env: | ||
BROWSERSTACK_LOCAL_IDENTIFIER: peerjs-${{ github.run_id }}-${{ github.run_attempt }} | ||
|
||
- name: "BrowserStackLocal Stop" # Terminating the BrowserStackLocal tunnel connection | ||
uses: browserstack/github-actions/setup-local@master | ||
with: | ||
local-testing: stop |
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 @@ | ||
[object Object] |
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,5 @@ | ||
{ | ||
"env": { | ||
"browser": true | ||
} | ||
} |
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,5 @@ | ||
<html> | ||
<head> | ||
<title>Alice</title> | ||
</head> | ||
</html> |
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,5 @@ | ||
<html> | ||
<head> | ||
<title>Bob</title> | ||
</head> | ||
</html> |
Oops, something went wrong.