From 7a00e00e66b89ea3e0a6d607120e7bbdf609902a Mon Sep 17 00:00:00 2001 From: "R.G. Wood" Date: Wed, 3 Apr 2024 17:06:24 +0100 Subject: [PATCH] Fix continuous build --- .github/workflows/lint-and-test.yml | 17 +++++------------ .github/workflows/playwright.yml | 4 ++-- 2 files changed, 7 insertions(+), 14 deletions(-) diff --git a/.github/workflows/lint-and-test.yml b/.github/workflows/lint-and-test.yml index de8e924..f33cf3e 100644 --- a/.github/workflows/lint-and-test.yml +++ b/.github/workflows/lint-and-test.yml @@ -1,25 +1,18 @@ -name: Lint and test +name: Lint on: [push, pull_request] jobs: build_and_test: runs-on: ubuntu-latest - strategy: - fail-fast: false - matrix: - nodejs: [12, 14] steps: - uses: actions/checkout@v2 - # https://github.com/actions/setup-node - uses: actions/setup-node@v2-beta with: - node-version: ${{ matrix.nodejs }} + node-version: 20 - - run: yarn install - - run: yarn add -D esbuild - - run: yarn test - - run: yarn lint - - run: yarn build-all + - run: npm ci + - run: npm rum lint + - run: npm run build diff --git a/.github/workflows/playwright.yml b/.github/workflows/playwright.yml index 467190b..7aab240 100644 --- a/.github/workflows/playwright.yml +++ b/.github/workflows/playwright.yml @@ -1,4 +1,4 @@ -name: Playwright Tests +name: Test on: push: branches: [ main, master ] @@ -17,7 +17,7 @@ jobs: run: npm ci - name: Install Playwright Browsers run: npx playwright install --with-deps - - name: Run Playwright tests + - name: Run tests run: npx playwright test - uses: actions/upload-artifact@v4 if: always()