2
0
mirror of https://github.com/frappe/frappe_docker.git synced 2024-09-20 11:09:01 +00:00
frappe_docker/.github/workflows/lint.yml

42 lines
798 B
YAML
Raw Normal View History

2021-11-04 12:31:49 +00:00
name: Lint
on:
push:
2021-11-05 16:36:47 +00:00
branches:
- main
pull_request:
branches:
- main
2021-11-04 12:31:49 +00:00
jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Python
uses: actions/setup-python@v3
# For shfmt pre-commit hook
- name: Setup Go
uses: actions/setup-go@v3
with:
go-version: "^1.14"
- name: Cache
uses: actions/cache@v3
with:
path: |
~/.cache/pre-commit
~/.cache/pip
key: lint-${{ hashFiles('.pre-commit-config.yaml') }}
- name: Install pre-commit
run: pip install -U pre-commit
- name: Lint
run: pre-commit run --color=always --all-files
env:
GO111MODULE: on