Update ESLint workflow to use Bun package manager

This commit is contained in:
Jesse Wierzbinski 2023-11-19 16:13:50 -10:00
parent 8e0cbab982
commit e417e9de4a

View file

@ -7,7 +7,7 @@
# More details at https://github.com/eslint/eslint # More details at https://github.com/eslint/eslint
# and https://eslint.org # and https://eslint.org
name: ESLint name: ESLint Checks
on: on:
push: push:
@ -30,13 +30,22 @@ jobs:
- name: Checkout code - name: Checkout code
uses: actions/checkout@v3 uses: actions/checkout@v3
- name: Install Bun runtime
run: |
curl -fsSL https://bun.sh/install | bash
- name: Install NPM packages
run: |
bun install
- name: Install ESLint - name: Install ESLint
run: | run: |
npm install eslint@8.10.0 bun install -g eslint@8.10.0
npm install @microsoft/eslint-formatter-sarif@2.1.7 bun install -g @microsoft/eslint-formatter-sarif@2.1.7
- name: Run ESLint - name: Run ESLint
run: npx eslint . run: |
bunx eslint .
--config .eslintrc.js --config .eslintrc.js
--ext .js,.jsx,.ts,.tsx --ext .js,.jsx,.ts,.tsx
--format @microsoft/eslint-formatter-sarif --format @microsoft/eslint-formatter-sarif