diff --git a/.github/workflows/linters.yml b/.github/workflows/linters.yml index 8ad64219..4111f5ce 100644 --- a/.github/workflows/linters.yml +++ b/.github/workflows/linters.yml @@ -7,7 +7,51 @@ on: pull_request: branches: [ main ] +permissions: + contents: read + jobs: - call: - uses: opiproject/actions/.github/workflows/linters.yml@main - secrets: inherit + markdown-lint: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Run tests + run: docker run -v $PWD:/workdir ghcr.io/igorshubovych/markdownlint-cli:latest --ignore=minutes --disable=MD013 "**/*.md" + + # - uses: avto-dev/markdown-lint@v1.5.0 + # with: + # args: './*.md' + + docker-lint: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: hadolint/hadolint-action@v3.1.0 + with: + recursive: true + ignore: DL3018 + + shellcheck: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: azohra/shell-linter@v0.6.0 + + YAMLlint: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: ibiqlik/action-yamllint@v3 + with: + file_or_dir: docker-compose.yml + config_data: "{extends: default, rules: {line-length: disable}}" + + golangci: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-go@v5 + - uses: golangci/golangci-lint-action@v6 + with: + working-directory: . + version: v1.61