-
Notifications
You must be signed in to change notification settings - Fork 825
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use Karma/BrowserStack to run <model-viewer> tests #1075
Merged
Merged
Changes from all commits
Commits
Show all changes
24 commits
Select commit
Hold shift + click to select a range
0eca663
Use Karma to run <model-viewer> tests
4c43afb
All the tests pass in Karma/BrowserStack
af3ece3
Kill WCT w/ fire, add working dev script
b1df980
Fix test:legacy script
6eb41e3
Remove accidental global leak
dc131a9
Fix overlapping test runs
f3ec62a
Give up running BrowserStack in parallel
67805d5
Prevent fidelity tests from running in main build
d311098
Add ci test scripts to top-level package.json
518a8fd
Run fidelity tests in Github Actions
230291d
Try a conditional
b6db869
Don't cd in xvfb command; more conditional
ed6cf61
Move to GITHUB_WORKSPACE when running xvfb
dbe659a
Try macos for fidelity tests
f51c675
Direct path to lerna
1174df8
Stream fidelity test results
cbffb27
Try XVFB again
1158cbf
Split PR build into separate config
a5a9a2b
Fix job names
957f425
Try a different condition
81ebd9d
Update package-lock.json to purge Sauce deps
0a4e415
Make sure USE_BROWSER_STACK is set
459ac03
Remove Travis config
4eaed2c
Remove vestigial WCT config
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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,43 @@ | ||
name: Fidelity tests | ||
|
||
on: [pull_request] | ||
|
||
jobs: | ||
compare_renders: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v1 | ||
- uses: actions/setup-node@v1 | ||
with: | ||
node-version: '12.x' | ||
|
||
- name: Get npm cache directory | ||
id: npm-cache | ||
run: | | ||
echo "::set-output name=dir::$(npm config get cache)" | ||
|
||
- name: Cache npm packages | ||
uses: actions/cache@v1 | ||
with: | ||
path: ${{ steps.npm-cache.outputs.dir }} | ||
key: ${{ runner.os }}-npm-${{ hashFiles('**/package-lock.json') }} | ||
restore-keys: | | ||
${{ runner.os }}-npm- | ||
|
||
- name: NPM install | ||
run: npm ci | ||
|
||
- name: Lint TypeScript sources | ||
run: npm run lint | ||
|
||
- name: Bootstrap packages | ||
run: npm run bootstrap | ||
|
||
- name: Build packages | ||
run: npm run build | ||
|
||
- name: Fidelity tests | ||
uses: GabrielBB/[email protected] | ||
with: | ||
run: ./node_modules/.bin/lerna run --scope @google/model-viewer-render-fidelity-tools test --stream |
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,43 @@ | ||
name: Unit tests (third-party PR) | ||
|
||
on: [pull_request] | ||
|
||
jobs: | ||
minimal_test_run: | ||
runs-on: ubuntu-latest | ||
|
||
if: github.event.pull_request.base.repo.id != github.event.pull_request.head.repo.id | ||
|
||
steps: | ||
- uses: actions/checkout@v1 | ||
- uses: actions/setup-node@v1 | ||
with: | ||
node-version: '12.x' | ||
|
||
- name: Get npm cache directory | ||
id: npm-cache | ||
run: | | ||
echo "::set-output name=dir::$(npm config get cache)" | ||
|
||
- name: Cache npm packages | ||
uses: actions/cache@v1 | ||
with: | ||
path: ${{ steps.npm-cache.outputs.dir }} | ||
key: ${{ runner.os }}-npm-${{ hashFiles('**/package-lock.json') }} | ||
restore-keys: | | ||
${{ runner.os }}-npm- | ||
|
||
- name: NPM install | ||
run: npm ci | ||
|
||
- name: Lint TypeScript sources | ||
run: npm run lint | ||
|
||
- name: Bootstrap packages | ||
run: npm run bootstrap | ||
|
||
- name: Build packages | ||
run: npm run build | ||
|
||
- name: Unit tests | ||
run: npm run test:ci |
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
This file was deleted.
Oops, something went wrong.
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
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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I love JavaScript! 😈