forked from evmos/evmos
-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (40 loc) · 1.09 KB
/
auto-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
name: Auto Format
on:
pull_request:
permissions: read-all
jobs:
format-go-code:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/setup-go@v5
with:
go-version: "1.22"
check-latest: true
- uses: actions/checkout@v4
with:
token: ${{ secrets.E2E_PAT }}
- run: go install mvdan.cc/gofumpt@latest
- run: make format
# Commit formatted files if necessary
- uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: run make format
format-python-code:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v4
with:
token: ${{ secrets.E2E_PAT }}
- uses: actions/setup-python@v5
with:
python-version: '3.10'
- run: pip install black isort
- run: make format-python
# Commit formatted files if necessary
- uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: run make format-python