generated from permafrost-dev/typescript-project-skeleton-rollup-jest
-
-
Notifications
You must be signed in to change notification settings - Fork 1
29 lines (23 loc) · 704 Bytes
/
format-code.yml
File metadata and controls
29 lines (23 loc) · 704 Bytes
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
name: Check & fix styling
on:
push:
jobs:
format-code:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
ref: ${{ github.head_ref }}
- name: Run prettier
uses: docker://permafrostsoftware/prettier-docker-ga
with:
args: --config prettier.config.js *.js *.json *.yml ./src/* ./tests/*
- name: Run ESLint
uses: permafrost-dev/eslint-docker-ga@main
with:
args: --config .eslintrc.js --fix --ext ts,js ./src/**/* ./tests/**/*
- name: Commit changes
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: Fix styling