forked from google/model-viewer
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use Karma/BrowserStack to run <model-viewer> tests (google#1075)
* Use Karma to run <model-viewer> tests * All the tests pass in Karma/BrowserStack * Kill WCT w/ fire, add working dev script * Fix test:legacy script * Remove accidental global leak * Fix overlapping test runs * Give up running BrowserStack in parallel * Prevent fidelity tests from running in main build * Add ci test scripts to top-level package.json * Run fidelity tests in Github Actions * Try a conditional * Don't cd in xvfb command; more conditional * Move to GITHUB_WORKSPACE when running xvfb * Try macos for fidelity tests * Direct path to lerna * Stream fidelity test results * Try XVFB again * Split PR build into separate config * Fix job names * Try a different condition * Update package-lock.json to purge Sauce deps * Make sure USE_BROWSER_STACK is set * Remove Travis config * Remove vestigial WCT config
- Loading branch information
Christopher Joel
authored
Mar 13, 2020
1 parent
24a92bd
commit 74c707f
Showing
41 changed files
with
12,564 additions
and
20,777 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,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.