From 2165b34c6d22aa1e570c71624df7ebfd7b810a9c Mon Sep 17 00:00:00 2001 From: Pascal Weiland <1645161+weiland@users.noreply.github.com> Date: Tue, 2 Jul 2024 12:39:24 +0200 Subject: [PATCH] feat(workflows/linter): use bun instead of yarn (#618) * 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. * fix(tests): remove unused eslint rules and attempt to fix linting issues --------- Co-authored-by: Pascal Weiland --- .github/workflows/linter.yml | 7 ++++++- tests/numbers.js | 1 - tests/strings.js | 1 - 3 files changed, 6 insertions(+), 3 deletions(-) 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 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