mirror of
https://github.com/versia-pub/server.git
synced 2025-12-06 16:38:19 +01:00
Update ESLint workflow to use Bun package manager
This commit is contained in:
parent
8e0cbab982
commit
e417e9de4a
27
.github/workflows/eslint.yml
vendored
27
.github/workflows/eslint.yml
vendored
|
|
@ -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,21 +30,30 @@ 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: |
|
||||||
--config .eslintrc.js
|
bunx eslint .
|
||||||
--ext .js,.jsx,.ts,.tsx
|
--config .eslintrc.js
|
||||||
--format @microsoft/eslint-formatter-sarif
|
--ext .js,.jsx,.ts,.tsx
|
||||||
--output-file eslint-results.sarif
|
--format @microsoft/eslint-formatter-sarif
|
||||||
|
--output-file eslint-results.sarif
|
||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
|
|
||||||
- name: Upload analysis results to GitHub
|
- name: Upload analysis results to GitHub
|
||||||
uses: github/codeql-action/upload-sarif@v2
|
uses: github/codeql-action/upload-sarif@v2
|
||||||
with:
|
with:
|
||||||
sarif_file: eslint-results.sarif
|
sarif_file: eslint-results.sarif
|
||||||
wait-for-processing: true
|
wait-for-processing: true
|
||||||
Loading…
Reference in a new issue