forked from teemtee/tmt
-
Notifications
You must be signed in to change notification settings - Fork 0
29 lines (27 loc) · 796 Bytes
/
pre-commit.yml
File metadata and controls
29 lines (27 loc) · 796 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: pre-commit
on:
pull_request:
push:
branches: [main]
jobs:
pre-commit:
runs-on: ubuntu-latest
env:
SKIP: no-commit-to-branch
steps:
# Required because of https://github.com/hadolint/hadolint/issues/886
- run: |
wget -O /usr/local/bin/hadolint https://github.com/hadolint/hadolint/releases/latest/download/hadolint-Linux-x86_64
chmod +x /usr/local/bin/hadolint
- uses: actions/checkout@v6
with:
persist-credentials: false
- uses: actions/setup-python@v6
with:
# Python 3.9 is for mypy testing the lowest python version
# Python 3.13 is for ansible-lint hard-coding the python requirement
python-version: |
3.9
3.13
3.x
- uses: pre-commit/action@v3.0.1