-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (44 loc) · 1.1 KB
/
lint-format.yaml
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
44
45
46
47
48
49
# This workflow runs Ruff, Prettier, Codespell on the repository.
name: Lint-Format
on:
push:
branches:
- develop
pull_request:
branches:
- main
- develop
jobs:
ruff-lint-format:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Run ruff linter
uses: astral-sh/ruff-action@v3
with:
args: check --output-format=github
- name: Run ruff formatter
uses: astral-sh/ruff-action@v3
with:
args: format --diff
prettier:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: "20"
- name: Install project dependencies
run: npm ci
- name: Run prettier check
run: npm run check:prettier
codespell:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Run codespell
uses: codespell-project/actions-codespell@v2