Skip to content

Generate mock Apis #1330

Generate mock Apis

Generate mock Apis #1330

Workflow file for this run

name: Linters
on:
workflow_dispatch:
workflow_call:
inputs:
with_golang:
required: false
default: true
type: boolean
with_docker:
required: false
default: true
type: boolean
push:
branches: [ main ]
pull_request:
branches: [ main ]
permissions:
contents: read
jobs:
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/[email protected]
# with:
# args: './*.md'
docker-lint:
if: ${{ inputs.with_docker}}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: hadolint/[email protected]
with:
recursive: true
ignore: DL3018
shellcheck:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: azohra/[email protected]
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:
if: ${{ inputs.with_golang}}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: '1.21.13' # Specify the Go version
- uses: golangci/golangci-lint-action@v3
with:
working-directory: .