mirror of
https://github.com/Karaka-Management/User-Guide.git
synced 2026-01-10 20:08:41 +00:00
38 lines
988 B
YAML
Executable File
38 lines
988 B
YAML
Executable File
name: CI
|
|
|
|
on: [push, pull_request]
|
|
|
|
jobs:
|
|
linting:
|
|
runs-on: ubuntu-latest
|
|
if: "!contains(github.event.head_commit.message, 'NO_CI')"
|
|
strategy:
|
|
fail-fast: false
|
|
max-parallel: 3
|
|
steps:
|
|
- name: Checkout Repository
|
|
uses: actions/checkout@main
|
|
with:
|
|
fetch-depth: 0
|
|
submodules: recursive
|
|
token: ${{ secrets.GH_PAT }}
|
|
- name: Checkout Build Repository
|
|
uses: actions/checkout@main
|
|
with:
|
|
fetch-depth: 1
|
|
ref: develop
|
|
repository: Karaka-Management/Build
|
|
path: Build
|
|
- name: Copy config file
|
|
run: |
|
|
mkdir .github/linters
|
|
cp Build/Config/markdown.json .github/linters/markdown.json
|
|
- name: Lint Code Base
|
|
uses: github/super-linter/slim@v4
|
|
env:
|
|
VALIDATE_ALL_CODEBASE: false
|
|
VALIDATE_MARKDOWN: true
|
|
MARKDOWN_CONFIG_FILE: markdown.json
|
|
DEFAULT_BRANCH: develop
|
|
GITHUB_TOKEN: ${{ secrets.GH_PAT }}
|