-
Notifications
You must be signed in to change notification settings - Fork 26
36 lines (34 loc) · 1.02 KB
/
lint.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
name: Linter
on:
pull_request:
branches:
- main
workflow_dispatch:
jobs:
lint:
name: Lint bash scripts
runs-on: ubuntu-latest
steps:
- name: Install tools
run: sudo apt install --no-install-recommends --yes python3-bashate
- name: Get sources
uses: actions/checkout@v3
- name: Lint bash scripts
run: |
bashate --ignore E006 --verbose openstack/tools/create-microceph-vm.sh
bashate --ignore E006 --verbose tools/*.sh tools/juju-lnav
bashate --ignore E006 --verbose openstack/novarc
bashate --ignore E006 --verbose common/ch_channel_map/*.sh
check-commit-message:
name: Check Commit Message
runs-on: ubuntu-latest
steps:
- name: Get sources
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Check Commit Message
run: |
./tools/lint-git-messages.sh \
${{ github.event.pull_request.base.sha }} \
${{ github.event.pull_request.head.sha }}