diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml index d90edcb52..d7584fece 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/node.js.yml @@ -28,10 +28,10 @@ jobs: - name: Install dependencies run: npm ci - - name: Build - run: npm run build - name: Lint run: npm run prettier && npm run lint + - name: Build + run: npm run build - name: Install Playwright run: npx playwright install --with-deps - name: Run CSR tests @@ -54,10 +54,16 @@ jobs: cache: 'npm' - name: Install dependencies run: npm ci - - name: Install Playwright - run: npx playwright install --with-deps + # Just lint here too. Save some GH Action minutes and not need to use "depends_on" or anything. + - name: Lint + run: npm run prettier && npm run lint + - name: Build run: npm run build + + - name: Install Playwright + run: npx playwright install --with-deps + - name: Run CSR tests # FAIL_FAST to fail on first failing test. run: FAIL_FAST="true" SSR_ONLY="true" npm run test diff --git a/src/internal/form.test.ts b/src/internal/form.test.ts index ba1d1269d..48b4e2ab4 100644 --- a/src/internal/form.test.ts +++ b/src/internal/form.test.ts @@ -1,8 +1,8 @@ import { aTimeout, expect, waitUntil } from '@open-wc/testing'; +import { clickOnElement } from './test.js'; import { fixtures } from './test/fixture.js'; import { html } from 'lit'; import sinon from 'sinon'; -import { clickOnElement } from './test.js'; describe('Form tests', () => { for (const fixture of fixtures) {