-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (38 loc) · 1.19 KB
/
lint.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
name: 🧹 Lint CI
on:
workflow_call:
secrets:
token:
required: true
jobs:
run-linters:
runs-on: ubuntu-latest
# Set a reasonable timeout, 120x shorter than GitHub's default 6 hours
timeout-minutes: 5
strategy:
matrix:
node: [22]
name: 🧹 🎨 🔢 Run linters with Node.js Version ${{ matrix.node }}
steps:
- name: 📂 Check out Git repository
uses: actions/checkout@v4
#- name: 🛠️ Set up Node.js
# uses: actions/setup-node@v4
# with:
# node-version: ${{ matrix.node }}
- name: 🛠️ Set up Bun.sh
uses: oven-sh/setup-bun@v2
with:
bun-version: latest
# ESLint and Prettier must be in `package.json`
#- name: 📦 Install Node.js dependencies with Node.js
# run: npm ci
- name: 📦 Install Node.js dependencies with Bun
run: bun install && bun run lint:fix
#- name: 🧹 🎨 Run linters and formatting
# uses: wearerequired/lint-action@v2
# with:
# github_token: ${{ secrets.token }}
# # Enable linters
# eslint: true
# prettier: true