mirror of
https://github.com/frappe/frappe_docker.git
synced 2026-06-23 00:05:09 +00:00
ci: create lint.yml
This commit is contained in:
parent
cde6bb3ce2
commit
4d175d549e
1 changed files with 35 additions and 0 deletions
35
.github/workflows/lint.yml
vendored
Normal file
35
.github/workflows/lint.yml
vendored
Normal file
|
|
@ -0,0 +1,35 @@
|
||||||
|
name: Lint
|
||||||
|
|
||||||
|
on:
|
||||||
|
workflow_run:
|
||||||
|
workflows:
|
||||||
|
- Pre-commit
|
||||||
|
types:
|
||||||
|
- completed
|
||||||
|
workflow_dispatch: {}
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
lint:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Setup Python
|
||||||
|
uses: actions/setup-python@v5
|
||||||
|
with:
|
||||||
|
python-version: "3.10.6"
|
||||||
|
|
||||||
|
- name: Setup Go (for shfmt)
|
||||||
|
uses: actions/setup-go@v5
|
||||||
|
with:
|
||||||
|
go-version: "^1.14"
|
||||||
|
|
||||||
|
- name: Install pre-commit
|
||||||
|
run: pip install -U pre-commit
|
||||||
|
|
||||||
|
- name: Lint
|
||||||
|
run: pre-commit run --color=always --all-files
|
||||||
|
env:
|
||||||
|
GO111MODULE: on
|
||||||
Loading…
Reference in a new issue