Skip to content

Don't fail on repositories with one branch #30

Don't fail on repositories with one branch

Don't fail on repositories with one branch #30

Workflow file for this run

name: Lint 🧢
on:
push:
branches:
- main
pull_request:
types:
- opened
- synchronize
- reopened
- ready_for_review
branches:
- main
workflow_dispatch:
concurrency:
group: lint-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
Lint:
name: SuperLinter πŸ¦ΈπŸ»β€β™€οΈ
runs-on: ubuntu-latest
steps:
- name: Checkout Repo πŸ›Ž
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Lint Code Base πŸ•΅πŸ»β€β™€οΈ
uses: github/super-linter/slim@v4
env:
LINTER_RULES_PATH: /
VALIDATE_ALL_CODEBASE: false
VALIDATE_GITHUB_ACTIONS: true
VALIDATE_MARKDOWN: true
VALIDATE_DOCKERFILE_HADOLINT: true
VALIDATE_GITLEAKS: true
DEFAULT_BRANCH: main
VALIDATE_JSON: true
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GoLint:
name: Lint Go Code πŸ”
runs-on: ubuntu-latest
strategy:
matrix:
go-version:
- 1.21.6
steps:
- name: Checkout Repo πŸ›Ž
uses: actions/checkout@v3
- name: Setup Go 🐹
uses: actions/setup-go@v3
with:
go-version: ${{ matrix.go-version }}
cache: true
cache-dependency-path: go.sum
- name: Lint Go Code πŸ•΅πŸ»β€β™‚οΈ
uses: golangci/golangci-lint-action@v3
with:
version: latest
only-new-issues: false