mirror of
https://github.com/Karaka-Management/oms-OnlineResourceWatcher.git
synced 2026-01-11 07:58:42 +00:00
37 lines
954 B
YAML
Executable File
37 lines
954 B
YAML
Executable File
name: CI
|
|
|
|
on: [push, pull_request]
|
|
|
|
jobs:
|
|
codestyle-tests:
|
|
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: 1
|
|
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
|
|
token: ${{ secrets.GH_PAT }}
|
|
- name: Copy config file
|
|
run: |
|
|
cp ./Build/Config/.clang-format ./.clang-format
|
|
- name: Lint Code Base
|
|
uses: github/super-linter/slim@v4
|
|
env:
|
|
VALIDATE_ALL_CODEBASE: false
|
|
VALIDATE_CLANG_FORMAT : true
|
|
DEFAULT_BRANCH: develop
|
|
GITHUB_TOKEN: ${{ secrets.GH_PAT }}
|