From d0d075feb4fbd8bf8228293bedab5090494b3bb9 Mon Sep 17 00:00:00 2001 From: Ramkumar Chinchani Date: Mon, 20 Mar 2023 19:01:26 +0000 Subject: [PATCH] ci: add some project structure checks Signed-off-by: Ramkumar Chinchani --- .github/workflows/structure.yaml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/structure.yaml diff --git a/.github/workflows/structure.yaml b/.github/workflows/structure.yaml new file mode 100644 index 00000000..9ff25273 --- /dev/null +++ b/.github/workflows/structure.yaml @@ -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$'