Skip to content

Feature/44 improve GitHub ci workflow #10

Feature/44 improve GitHub ci workflow

Feature/44 improve GitHub ci workflow #10

Workflow file for this run

# SPDX-FileCopyrightText: 2023 Lennart Heimbs <lennart@heimbs.me>
#
# SPDX-License-Identifier: MIT
---
name: ktlint
on:
pull_request:
jobs:
lint:
runs-on: ubuntu-latest
permissions:
contents: read
packages: read
statuses: write
steps:
- name: "checkout"
uses: actions/checkout@v4
with:
# Full git history is needed to get a proper
# list of changed files within `super-linter`
fetch-depth: 0
- name: Lint Code Base
uses: super-linter/super-linter/slim@v5
env:
VALIDATE_ALL_CODEBASE: false
DEFAULT_BRANCH: main
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}