diff --git a/.github/workflows/deploy-documentation.yml b/.github/workflows/deploy-documentation.yml index 145f547154..b8264c317f 100644 --- a/.github/workflows/deploy-documentation.yml +++ b/.github/workflows/deploy-documentation.yml @@ -25,6 +25,12 @@ jobs: - name: Build packages run: npm run build + - name: Generate fidelity artifacts + continue-on-error: true + uses: GabrielBB/xvfb-action@v1.0 + with: + run: npm run --scope @google/model-viewer-render-fidelity-tools test --stream + - name: Stage documentation artifacts run: ./packages/modelviewer.dev/scripts/ci-before-deploy.sh diff --git a/.github/workflows/fidelity-tests.yml b/.github/workflows/fidelity-tests.yml index 7d2b7f1d7f..c1adca8b8a 100644 --- a/.github/workflows/fidelity-tests.yml +++ b/.github/workflows/fidelity-tests.yml @@ -18,3 +18,13 @@ jobs: # - name: Lint TypeScript sources # run: npm run lint + + - name: Build packages + run: | + npm run --scope @google/model-viewer build --stream + npm run --scope @google/model-viewer-render-fidelity-tools build --stream + + - name: Fidelity tests + uses: GabrielBB/xvfb-action@v1.0 + with: + run: npm run --scope @google/model-viewer-render-fidelity-tools test --stream diff --git a/.github/workflows/unit-tests.yml b/.github/workflows/unit-tests.yml index 28098a9ca2..04a9f3e17e 100644 --- a/.github/workflows/unit-tests.yml +++ b/.github/workflows/unit-tests.yml @@ -27,4 +27,4 @@ jobs: run: npm run build - name: Unit tests - run: npm run test \ No newline at end of file + run: npm run test:ci \ No newline at end of file diff --git a/package.json b/package.json index b19db497f0..00eeb7f509 100644 --- a/package.json +++ b/package.json @@ -3,7 +3,8 @@ "private": true, "description": "The repository for all packages", "scripts": { - "test": "npm run test --workspaces", + "test": "npm test --workspaces", + "test:ci": "npm test --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",