mirror of
https://github.com/project-zot/zot.git
synced 2024-12-30 22:34:13 -05:00
ci: add some project structure checks
Signed-off-by: Ramkumar Chinchani <rchincha@cisco.com>
This commit is contained in:
parent
a3d8202345
commit
d0d075feb4
1 changed files with 24 additions and 0 deletions
24
.github/workflows/structure.yaml
vendored
Normal file
24
.github/workflows/structure.yaml
vendored
Normal file
|
@ -0,0 +1,24 @@
|
||||||
|
name: 'Project structure checks'
|
||||||
|
on:
|
||||||
|
pull_request:
|
||||||
|
types:
|
||||||
|
- opened
|
||||||
|
- edited
|
||||||
|
- reopened
|
||||||
|
- synchronize
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
check-filenames:
|
||||||
|
name: Check filenames
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
- uses: batista/lint-filenames@v1
|
||||||
|
name: Validating golang filenames
|
||||||
|
with:
|
||||||
|
path: './'
|
||||||
|
pattern: '^[_\\.a-z]+\\.go$'
|
Loading…
Reference in a new issue