From a3acccd2fe0ba98cf90cbb7b1c63ac372c0ba70a Mon Sep 17 00:00:00 2001 From: Karl Horky Date: Mon, 9 Sep 2024 14:12:30 +0200 Subject: [PATCH 1/3] Remove Windows long path workaround, upgrade to Node.js >=22.7.0 --- .github/workflows/build-lint-test.yml | 2 +- __tests__/e2e.test.ts | 10 +--------- 2 files changed, 2 insertions(+), 10 deletions(-) diff --git a/.github/workflows/build-lint-test.yml b/.github/workflows/build-lint-test.yml index 00cee8bc..1a383fef 100644 --- a/.github/workflows/build-lint-test.yml +++ b/.github/workflows/build-lint-test.yml @@ -69,7 +69,7 @@ jobs: - name: Use Node.js uses: actions/setup-node@v4 with: - node-version: 'lts/*' + node-version: '>=22.7.0' cache: 'pnpm' - run: pnpm install diff --git a/__tests__/e2e.test.ts b/__tests__/e2e.test.ts index 7ca5360d..05515ca3 100644 --- a/__tests__/e2e.test.ts +++ b/__tests__/e2e.test.ts @@ -3,15 +3,7 @@ import { beforeAll, expect, test } from '@jest/globals'; import { execa } from 'execa'; import pMap from 'p-map'; -const fixturesTempDir = process.env.GITHUB_ACTIONS - ? // Switch to `tmpdir()` on GitHub Actions to avoid - // ESLint crashing with Windows paths over the 260 character - // MAX_PATH limit - // https://github.com/upleveled/preflight/pull/469/#issuecomment-1812422819 - // https://github.com/eslint/eslint/issues/17763 - // https://github.com/nodejs/node/issues/50753 - tmpdir() - : '__tests__/fixtures/__temp'; +const fixturesTempDir = '__tests__/fixtures/__temp'; beforeAll( async () => { From bf249c2580979cf3081478be89bafe1b621caba2 Mon Sep 17 00:00:00 2001 From: Karl Horky Date: Mon, 9 Sep 2024 15:09:38 +0200 Subject: [PATCH 2/3] Remove unused import --- __tests__/e2e.test.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/__tests__/e2e.test.ts b/__tests__/e2e.test.ts index 05515ca3..c7496635 100644 --- a/__tests__/e2e.test.ts +++ b/__tests__/e2e.test.ts @@ -1,4 +1,3 @@ -import { tmpdir } from 'node:os'; import { beforeAll, expect, test } from '@jest/globals'; import { execa } from 'execa'; import pMap from 'p-map'; From 08ed9c686a9ffd110c0a55ca8f0a06e850677149 Mon Sep 17 00:00:00 2001 From: Karl Horky Date: Mon, 9 Sep 2024 16:36:09 +0200 Subject: [PATCH 3/3] Revert version change --- .github/workflows/build-lint-test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build-lint-test.yml b/.github/workflows/build-lint-test.yml index 1a383fef..00cee8bc 100644 --- a/.github/workflows/build-lint-test.yml +++ b/.github/workflows/build-lint-test.yml @@ -69,7 +69,7 @@ jobs: - name: Use Node.js uses: actions/setup-node@v4 with: - node-version: '>=22.7.0' + node-version: 'lts/*' cache: 'pnpm' - run: pnpm install