Skip to content

Commit

Permalink
update scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
elalish committed Jul 31, 2023
1 parent 2d08a93 commit 6e86282
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 15 deletions.
8 changes: 2 additions & 6 deletions .github/workflows/fidelity-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,11 @@ jobs:
# - name: Lint TypeScript sources
# run: npm run lint

- name: Bootstrap packages
run: npm run bootstrap

- name: Build packages
run: |
./node_modules/.bin/lerna run --scope @google/model-viewer build --stream
./node_modules/.bin/lerna run --scope @google/model-viewer-render-fidelity-tools build --stream
npm run build --workspace=model-viewer --workspace=render-fidelity-tools
- name: Fidelity tests
uses: GabrielBB/xvfb-action@v1.0
with:
run: ./node_modules/.bin/lerna run --scope @google/model-viewer-render-fidelity-tools test --stream
run: npm run test --workspace=render-fidelity-tools
5 changes: 1 addition & 4 deletions .github/workflows/unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,8 @@ jobs:
# - 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
run: npm run test:ci --workspaces
6 changes: 1 addition & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,11 @@
"private": true,
"description": "The repository for all <model-viewer> packages",
"scripts": {
"test": "npm test --workspaces",
"test:ci": "npm test:ci --workspaces",
"format": "find packages/**/src -name '*.ts' | grep -v .d.ts | xargs ./node_modules/.bin/clang-format --verbose -i",
"lint": "./node_modules/.bin/eslint \"packages/**/*.ts\"",
"lint:fix": "npm run lint -- --fix",
"clean": "npm run clean --workspaces",
"build": "npm run build --workspaces",
"serve": "./node_modules/.bin/http-server -c-1",
"update:package-lock": "npm install --save && npm run clean && node ./scripts/postinstall.js"
"update:package-lock": "npm install --save && npm run clean --workspaces && node ./scripts/postinstall.js"
},
"husky": {
"hooks": {
Expand Down

0 comments on commit 6e86282

Please sign in to comment.