From fba9deb7d2b75530fb3c11c69810d9b3b4549147 Mon Sep 17 00:00:00 2001 From: Pascal Weiland Date: Tue, 2 Jul 2024 12:05:57 +0200 Subject: [PATCH 1/2] feat(workflows): use bun instead of yarn With `use-bun: true` option when using _linter.yml_ we will use bun over yarn for installation. NOTE: `install-all` still relies on yarn. --- .github/workflows/linter.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/linter.yml b/.github/workflows/linter.yml index 7cb3992..5d89de3 100644 --- a/.github/workflows/linter.yml +++ b/.github/workflows/linter.yml @@ -158,14 +158,19 @@ jobs: bun-version: latest - name: 📦 Enable Corepack + if: inputs.use-bun != true run: corepack enable + - name: 🛠 Use Bun (if `use-bun`) + if: inputs.use-bun == true + run: bun install + - name: 📦 Install Dependencies (if `install:all`) if: inputs.install-all == true run: yarn -v && yarn && yarn install:all - name: 📦 Install Dependencies (if `install`) - if: inputs.install-all != true + if: inputs.install-all != true && inputs.use-bun != true run: yarn install - name: 🔑 Generate dummy keys From 45be73773d63e852d8f4e18d99012c1bcc06777b Mon Sep 17 00:00:00 2001 From: Pascal Weiland Date: Tue, 2 Jul 2024 12:29:42 +0200 Subject: [PATCH 2/2] fix(tests): remove unused eslint rules and attempt to fix linting issues --- tests/numbers.js | 1 - tests/strings.js | 1 - 2 files changed, 2 deletions(-) diff --git a/tests/numbers.js b/tests/numbers.js index 518fcc2..882ea7e 100644 --- a/tests/numbers.js +++ b/tests/numbers.js @@ -1,4 +1,3 @@ -/* eslint-disable sonarjs/no-duplicate-string */ /* by SWR Audio Lab diff --git a/tests/strings.js b/tests/strings.js index 142f1e1..2c28064 100644 --- a/tests/strings.js +++ b/tests/strings.js @@ -1,4 +1,3 @@ -/* eslint-disable sonarjs/no-duplicate-string */ /* by SWR Audio Lab