Skip to content

Commit c3334e2

Browse files
committed
add a new ESLint check on Pull Requests
1 parent f104ed5 commit c3334e2

File tree

2 files changed

+23
-2
lines changed

2 files changed

+23
-2
lines changed

.github/workflows/eslint.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: ESLint Check on PR's
2+
3+
on:
4+
pull_request:
5+
push:
6+
branches: ["main"]
7+
permissions:
8+
contents: read
9+
10+
jobs:
11+
lint:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Checkout
15+
uses: actions/checkout@v4
16+
17+
- name: Install Bun
18+
uses: oven-sh/setup-bun@v2
19+
with:
20+
bun-version: latest
21+
- name: Run ESLint
22+
run: bunx eslint .

.github/workflows/nextjs.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,7 @@ jobs:
3434
- uses: oven-sh/setup-bun@v2
3535
name: Install bun
3636
with:
37-
version: 10
38-
run_install: false
37+
bun-version: latest
3938
- name: Setup Pages
4039
uses: actions/configure-pages@v5
4140
with:

0 commit comments

Comments
 (0)