Skip to content

Commit eff0dd9

Browse files
authored
Run prettier in GitHub Actions (python#232)
1 parent c1fc85c commit eff0dd9

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

.github/workflows/lint.yml

+12-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ permissions:
1010
contents: read
1111

1212
jobs:
13-
lint:
13+
pre-commit:
1414
runs-on: ubuntu-latest
1515

1616
steps:
@@ -20,3 +20,14 @@ jobs:
2020
python-version: "3.x"
2121
cache: pip
2222
- uses: pre-commit/[email protected]
23+
24+
prettier:
25+
runs-on: ubuntu-latest
26+
27+
steps:
28+
- uses: actions/checkout@v4
29+
- uses: actions/setup-node@v4
30+
with:
31+
node-version: "22"
32+
- name: Lint with Prettier
33+
run: npx prettier templates/switchers.js --check --single-quote

0 commit comments

Comments
 (0)