-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (39 loc) · 1.31 KB
/
code-style.yml
File metadata and controls
48 lines (39 loc) · 1.31 KB
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
name: Code Style
on:
pull_request:
branches: [dev]
paths: ['**.js', '**.ts']
env:
# version should be in sync w package.json
ROME_VERSION: 11.0.0
jobs:
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Install Rome
uses: rome/setup-rome@main
with:
version: ${{ env.ROME_VERSION }}
- name: Check Rome Version
run: rome version
- name: Run Linter
# specific flag is required per https://github.com/rome/tools/discussions/3925#discussioncomment-4310702
run: rome ci --formatter-enabled=false .
format:
name: Format
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Install Rome
uses: rome/setup-rome@main
with:
version: ${{ env.ROME_VERSION }}
- name: Check Rome Version
run: rome version
- name: Run Formatter
# specific flag is required per https://github.com/rome/tools/discussions/3925#discussioncomment-4310702
run: rome ci --linter-enabled=false .