From 6ba29f34596b19bb72303e75022d132bdd57709b Mon Sep 17 00:00:00 2001 From: Xon <635541+Xon@users.noreply.github.com> Date: Fri, 23 Aug 2024 01:27:33 +0800 Subject: [PATCH] Update build-and-test github action --- .github/workflows/build-and-test.yml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build-and-test.yml b/.github/workflows/build-and-test.yml index 7938e056..bc00c6b5 100644 --- a/.github/workflows/build-and-test.yml +++ b/.github/workflows/build-and-test.yml @@ -15,9 +15,18 @@ jobs: - uses: actions/setup-node@v4 with: node-version: 20 + + - name: Install dependencies + run: npm ci --no-audit + env: + HUSKY_SKIP_INSTALL: true + + - name: Install Playwright Browsers + run: npx playwright install --with-deps + - run: npx playwright install-deps + - name: Build and run all tests run: | - npm ci npm run build npm run bundlesize npm run test:unit:coverage