Skip to content

Commit

Permalink
feat(workflows/linter): use bun instead of yarn (#618)
Browse files Browse the repository at this point in the history
* 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 <[email protected]>
  • Loading branch information
weiland and weiland authored Jul 2, 2024
1 parent 0ace238 commit 2165b34
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
7 changes: 6 additions & 1 deletion .github/workflows/linter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 0 additions & 1 deletion tests/numbers.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* eslint-disable sonarjs/no-duplicate-string */
/*
by SWR Audio Lab
Expand Down
1 change: 0 additions & 1 deletion tests/strings.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* eslint-disable sonarjs/no-duplicate-string */
/*
by SWR Audio Lab
Expand Down

0 comments on commit 2165b34

Please sign in to comment.