forked from ueckoken/plarail2021-soft
-
Notifications
You must be signed in to change notification settings - Fork 1
67 lines (64 loc) · 1.83 KB
/
format.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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
name: formatter
on:
push:
branches-ignore:
- "main"
- "deployment"
jobs:
prettier:
runs-on: ubuntu-latest
defaults:
run:
working-directory: "frontend/site"
steps:
- name: checkout
uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version-file: ./frontend/site/.nvmrc
cache: yarn
cache-dependency-path: ./frontend/site/yarn.lock
- run: yarn install --frozen-lockfile
- run: yarn fmt
- uses: EndBug/add-and-commit@v9
with:
message: format by prettier
black-auto_operation:
runs-on: ubuntu-latest
defaults:
run:
working-directory: "backend/auto_operation"
steps:
- name: checkout
uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version-file: ./backend/auto_operation/.python-version
cache: pip
cache-dependency-path: ./backend/auto_operation/requirements.dev.txt
- run: pip install -r requirements.dev.txt
- run: make format
- uses: EndBug/add-and-commit@v9
with:
message: format by black
default_author: github_actions
black-multicaster:
runs-on: ubuntu-latest
defaults:
run:
working-directory: "backend/multicaster"
steps:
- name: checkout
uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version-file: ./backend/multicaster/.python-version
cache: pip
cache-dependency-path: ./backend/multicaster/requirements-dev.txt
- run: pip install -r requirements-dev.txt
- run: black .
- uses: EndBug/add-and-commit@v9
with:
author_name: format BOT
author_email: [email protected]
message: format by black