-
Notifications
You must be signed in to change notification settings - Fork 12
40 lines (40 loc) · 1.09 KB
/
gitlint.yaml
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
---
name: checks on Pull Request
"on":
pull_request:
types:
- opened
- reopened
- synchronize
jobs:
gitlint:
name: Run gitlint checks
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
ref: ${{ github.event.pull_request.head.sha }}
- uses: actions/setup-python@v5
with:
python-version: '3.12'
cache: 'pip'
- name: Install Python dependencies
run: pip install -r requirements.lock
- name: Run gitlint on CI with pre-commit
run: >-
gitlint --commits origin/${{ github.event.pull_request.base.ref
}}..HEAD
check-same-go-toolset:
name: Check the same Go Toolset image is used everywhere
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
ref: ${{ github.event.pull_request.head.sha }}
- name: Run check-same-go-toolset script
run: >-
bash chore-scripts/check-same-go-toolset.sh