From 1e0da0ce7b966e62ec91e4382a86d2e1c705139b Mon Sep 17 00:00:00 2001 From: Gareth Jones <3151613+G-Rath@users.noreply.github.com> Date: Tue, 1 Jul 2025 14:28:13 +1200 Subject: [PATCH 01/10] ci: run workflow --- .github/workflows/smoke-test.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/smoke-test.yml b/.github/workflows/smoke-test.yml index 9f44d0466..efecd05d9 100644 --- a/.github/workflows/smoke-test.yml +++ b/.github/workflows/smoke-test.yml @@ -4,6 +4,9 @@ on: schedule: - cron: '0 0 * * SUN' workflow_dispatch: + push: + branches: + - ci/dont-use-npm permissions: contents: read # to fetch code (actions/checkout) From 707603dcd43c6c7a00a1ee7a735d05a72c090415 Mon Sep 17 00:00:00 2001 From: Gareth Jones <3151613+G-Rath@users.noreply.github.com> Date: Tue, 1 Jul 2025 14:30:11 +1200 Subject: [PATCH 02/10] ci: run on one repo --- eslint-remote-tester.config.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eslint-remote-tester.config.ts b/eslint-remote-tester.config.ts index 126bdb0f9..e6446369e 100644 --- a/eslint-remote-tester.config.ts +++ b/eslint-remote-tester.config.ts @@ -5,7 +5,7 @@ import { } from 'eslint-remote-tester-repositories'; const config: Config = { - repositories: getRepositories({ randomize: true }), + repositories: getRepositories({ randomize: true }).slice(0, 1), pathIgnorePattern: getPathIgnorePattern(), extensions: ['js', 'jsx', 'ts', 'tsx'], concurrentTasks: 3, From 1bd4d4b64010fcae7212a4c9e4816d50bfcff49d Mon Sep 17 00:00:00 2001 From: Gareth Jones <3151613+G-Rath@users.noreply.github.com> Date: Tue, 1 Jul 2025 14:32:25 +1200 Subject: [PATCH 03/10] ci: use Node v20 --- .github/workflows/smoke-test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/smoke-test.yml b/.github/workflows/smoke-test.yml index efecd05d9..8e75aaa04 100644 --- a/.github/workflows/smoke-test.yml +++ b/.github/workflows/smoke-test.yml @@ -25,7 +25,7 @@ jobs: persist-credentials: false - uses: actions/setup-node@v4 with: - node-version: 16 + node-version: 20 - run: | npm install --legacy-peer-deps npm run build From 81b354fe21979c24607c4738620a479cc54a940b Mon Sep 17 00:00:00 2001 From: Gareth Jones <3151613+G-Rath@users.noreply.github.com> Date: Tue, 1 Jul 2025 14:33:05 +1200 Subject: [PATCH 04/10] ci: use yarn --- .github/workflows/smoke-test.yml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/smoke-test.yml b/.github/workflows/smoke-test.yml index 8e75aaa04..8e6d27e23 100644 --- a/.github/workflows/smoke-test.yml +++ b/.github/workflows/smoke-test.yml @@ -27,10 +27,9 @@ jobs: with: node-version: 20 - run: | - npm install --legacy-peer-deps - npm run build - npm link - npm link eslint-plugin-jest + yarn install + yarn build + yarn link - uses: AriPerkkio/eslint-remote-tester-run-action@v4 with: issue-title: 'Results of weekly scheduled smoke test' From 4e490b0d37bb34ccba4ae7faaaaea60ed01f6115 Mon Sep 17 00:00:00 2001 From: Gareth Jones <3151613+G-Rath@users.noreply.github.com> Date: Tue, 1 Jul 2025 14:36:15 +1200 Subject: [PATCH 05/10] ci: downgrade smoke test repos --- package.json | 2 +- yarn.lock | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/package.json b/package.json index fb5b00e6b..ca475fedd 100644 --- a/package.json +++ b/package.json @@ -106,7 +106,7 @@ "eslint-plugin-n": "^17.0.0", "eslint-plugin-prettier": "^5.0.0", "eslint-remote-tester": "^3.0.0", - "eslint-remote-tester-repositories": "~2.0.0", + "eslint-remote-tester-repositories": "^1.0.0", "husky": "^9.0.1", "is-ci": "^4.0.0", "jest": "^30.0.0", diff --git a/yarn.lock b/yarn.lock index f1c56fed6..8e8aa335b 100644 --- a/yarn.lock +++ b/yarn.lock @@ -5295,7 +5295,7 @@ __metadata: eslint-plugin-n: "npm:^17.0.0" eslint-plugin-prettier: "npm:^5.0.0" eslint-remote-tester: "npm:^3.0.0" - eslint-remote-tester-repositories: "npm:~2.0.0" + eslint-remote-tester-repositories: "npm:^1.0.0" husky: "npm:^9.0.1" is-ci: "npm:^4.0.0" jest: "npm:^30.0.0" @@ -5361,10 +5361,10 @@ __metadata: languageName: node linkType: hard -"eslint-remote-tester-repositories@npm:~2.0.0": - version: 2.0.1 - resolution: "eslint-remote-tester-repositories@npm:2.0.1" - checksum: 10c0/0efae02033c86258057550c4032bcb5bc41f37678e742630c003a73138ac68cad894b70e0664c39cee3d5f904c870eec4d32a024f2f39cb041884fc39ceab906 +"eslint-remote-tester-repositories@npm:^1.0.0": + version: 1.0.1 + resolution: "eslint-remote-tester-repositories@npm:1.0.1" + checksum: 10c0/ac3c097f83b0e1bd19b7863c986522a290673c2918c23507cebe77a8d45706a75e6f1ec622d203b610c5176834f485e2b3b96e204e1fc61ba2f5665ec113ce88 languageName: node linkType: hard From ad00037d089a929ae519f06dcf3d851dd90a412b Mon Sep 17 00:00:00 2001 From: Gareth Jones <3151613+G-Rath@users.noreply.github.com> Date: Tue, 1 Jul 2025 14:47:03 +1200 Subject: [PATCH 06/10] ci: make a symlink manually --- .github/workflows/smoke-test.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/smoke-test.yml b/.github/workflows/smoke-test.yml index 8e6d27e23..1d73c4bfb 100644 --- a/.github/workflows/smoke-test.yml +++ b/.github/workflows/smoke-test.yml @@ -30,6 +30,7 @@ jobs: yarn install yarn build yarn link + ln -s ../ node_modules/eslint-plugin-jest - uses: AriPerkkio/eslint-remote-tester-run-action@v4 with: issue-title: 'Results of weekly scheduled smoke test' From 5524cd9d87efe96dfea2db8adb2d27cfe2c9f955 Mon Sep 17 00:00:00 2001 From: Gareth Jones <3151613+G-Rath@users.noreply.github.com> Date: Tue, 1 Jul 2025 16:29:07 +1200 Subject: [PATCH 07/10] ci: run against all repos --- eslint-remote-tester.config.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eslint-remote-tester.config.ts b/eslint-remote-tester.config.ts index e6446369e..126bdb0f9 100644 --- a/eslint-remote-tester.config.ts +++ b/eslint-remote-tester.config.ts @@ -5,7 +5,7 @@ import { } from 'eslint-remote-tester-repositories'; const config: Config = { - repositories: getRepositories({ randomize: true }).slice(0, 1), + repositories: getRepositories({ randomize: true }), pathIgnorePattern: getPathIgnorePattern(), extensions: ['js', 'jsx', 'ts', 'tsx'], concurrentTasks: 3, From c20817e0cbeba9611c702601fbde68821f6307af Mon Sep 17 00:00:00 2001 From: Gareth Jones <3151613+G-Rath@users.noreply.github.com> Date: Wed, 2 Jul 2025 06:52:56 +1200 Subject: [PATCH 08/10] ci: remove unneeded `yarn link` --- .github/workflows/smoke-test.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/smoke-test.yml b/.github/workflows/smoke-test.yml index 1d73c4bfb..482cf8529 100644 --- a/.github/workflows/smoke-test.yml +++ b/.github/workflows/smoke-test.yml @@ -29,7 +29,6 @@ jobs: - run: | yarn install yarn build - yarn link ln -s ../ node_modules/eslint-plugin-jest - uses: AriPerkkio/eslint-remote-tester-run-action@v4 with: From 086a3e0c7847d5bfd18986ed1426f5c31a7f410c Mon Sep 17 00:00:00 2001 From: Gareth Jones <3151613+G-Rath@users.noreply.github.com> Date: Wed, 2 Jul 2025 06:53:11 +1200 Subject: [PATCH 09/10] ci: cache yarn dependencies --- .github/workflows/smoke-test.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/smoke-test.yml b/.github/workflows/smoke-test.yml index 482cf8529..919abc608 100644 --- a/.github/workflows/smoke-test.yml +++ b/.github/workflows/smoke-test.yml @@ -26,6 +26,7 @@ jobs: - uses: actions/setup-node@v4 with: node-version: 20 + cache: 'yarn' - run: | yarn install yarn build From ddf81c77635b5a32ef3739b39abab8cc47ff94f0 Mon Sep 17 00:00:00 2001 From: Gareth Jones <3151613+G-Rath@users.noreply.github.com> Date: Wed, 2 Jul 2025 06:56:26 +1200 Subject: [PATCH 10/10] ci: skip branch --- .github/workflows/smoke-test.yml | 3 --- 1 file changed, 3 deletions(-) diff --git a/.github/workflows/smoke-test.yml b/.github/workflows/smoke-test.yml index 919abc608..a0ba80b5c 100644 --- a/.github/workflows/smoke-test.yml +++ b/.github/workflows/smoke-test.yml @@ -4,9 +4,6 @@ on: schedule: - cron: '0 0 * * SUN' workflow_dispatch: - push: - branches: - - ci/dont-use-npm permissions: contents: read # to fetch code (actions/checkout)