Files
k8s-configs/.gitea/workflows/check-shellscripts.yml
Denis Patrakeev 5654a65bff [DO-1431] deploy ArgoCD (!6)
DO-1431

Co-authored-by: denis.patrakeev <denis.patrakeev@avroid.tech>
Reviewed-on: https://git.avroid.tech/K8s/k8s-configs/pulls/6
2025-02-10 15:05:06 +03:00

45 lines
1.4 KiB
YAML

---
name: Check ShellScripts
run-name: ${{ gitea.actor }} is start check shellscripts
on: [pull_request]
jobs:
shellscripts:
name: Check shellscripts by shellcheck
runs-on: docker
container:
image: harbor.avroid.tech/docker-hub-proxy/library/node:20
steps:
- run: echo "Start job on ${{ runner.name }} with os ${{ runner.os }}"
- run: echo "Work with branch ${{ gitea.ref }} repository ${{ gitea.repository }}"
- name: Check out repository code
uses: https://git-mirrors.avroid.tech/Mirrors-actions/checkout.git@v4
- name: Check shellscripts by shellcheck
uses: https://git-mirrors.avroid.tech/Mirrors-actions/action-shellcheck.git@2.0.0
shfmt:
name: Check shellscript formatting
runs-on: docker
container:
image: harbor.avroid.tech/docker-hub-proxy/library/node:20
steps:
- run: echo "Start job on ${{ runner.name }} with os ${{ runner.os }}"
- run: echo "Work with branch ${{ gitea.ref }} repository ${{ gitea.repository }}"
- name: Check out repository code
uses: https://git-mirrors.avroid.tech/Mirrors-actions/checkout.git@v4
- name: Install Golang
uses: https://git-mirrors.avroid.tech/Mirrors-actions/setup-go.git@v5
with:
go-version: '1.22'
check-latest: true
- name: Install shfmt
run: go install mvdan.cc/sh/v3/cmd/shfmt@latest
- name: Check shellscripts by shfmt
run: shfmt -d .