forked from project-ocre/ocre-runtime
-
Notifications
You must be signed in to change notification settings - Fork 0
57 lines (44 loc) · 1.57 KB
/
Copy pathformatting-checks.yml
File metadata and controls
57 lines (44 loc) · 1.57 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
# @copyright Copyright (c) contributors to Project Ocre,
# which has been established as Project Ocre a Series of LF Projects, LLC
#
# SPDX-License-Identifier: Apache-2.0
name: Formatting checks
on:
workflow_call:
inputs:
devcontainer-tag:
description: The container tag to be used
default: latest
required: false
type: string
jobs:
format-checks:
name: Formatting checks
runs-on: ubuntu-24.04
container:
image: ghcr.io/${{ github.repository }}/devcontainer-linux:${{ inputs.devcontainer-tag }}
steps:
- name: Clean other workspace
run: rm -rf ../.west
- name: Clean workspace
run: find . -name . -o -prune -exec rm -rf -- {} +
- name: Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
with:
fetch-depth: 0
- name: Configure git safe directory
run: git config --global --add safe.directory "$GITHUB_WORKSPACE"
- name: Run C Format Checks
run: sh scripts/check_c_formatting.sh
- name: Run YAML Format Checks
run: sh scripts/yml_linter.sh
- name: Run Python Format Checks
run: sh scripts/check_py_formatting.sh
- name: Run Markdown Format Checks
run: sh scripts/md_linter.sh
- name: License Banner Checks(.c files)
run: sh scripts/check_license_banner_c.sh
- name: License Banner Checks(conf files)
run: sh scripts/check_license_banner_conf_files.sh
- name: License Banner Checks(md files)
run: sh scripts/check_license_banner_md.sh