From 527b1d87cf49c4559e088de8c2d3b5b19e6e4433 Mon Sep 17 00:00:00 2001 From: Joe Pea Date: Mon, 30 Oct 2023 19:31:54 -0700 Subject: [PATCH] infra: update GitHub Actions config to avoid checking for unexpected build output modifications in Windows, we still need a few more fixes for Windows --- .github/workflows/tests.yml | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 1024ff5..c151fb6 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -18,13 +18,23 @@ jobs: uses: actions/setup-node@v3 with: node-version: latest - - name: npm install, build, and test + - name: install run: | npm i + - name: check formatting + run: | + npm run prettier:check + - name: build + run: | npm run clean npm run build + - name: test + run: | npm test - - name: ensure no modifications - run: git add . && git diff --quiet && git diff --cached --quiet + - name: check repo is clean + # skip this check in windows for now, as the build outputs may get slightly modified in Windows, which we want to fix. + if: runner.os != 'Windows' + run: | + git add . && git diff --quiet && git diff --cached --quiet env: CI: true