Skip to content

Clang-Format the FreeRTOS-Kernel #1732

Clang-Format the FreeRTOS-Kernel

Clang-Format the FreeRTOS-Kernel #1732

Workflow file for this run

name: Kernel-Checker
on: [push, pull_request]
jobs:
kernel-checker:
name: FreeRTOS Kernel Header Checks
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
# Install python 3
- name: Tool Setup
uses: actions/setup-python@v3
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# There is shared code, hosted by FreeRTOS/FreeRTOS, with deps needed by header checker
- name: Checkout FreeRTOS Tools
uses: actions/checkout@v3
with:
repository: FreeRTOS/FreeRTOS
ref: main
path: tools
sparse-checkout: ".github"
# Checkout user pull request changes
- name: Checkout Pull Request
uses: actions/checkout@v3
with:
path: inspect
# Collect all affected files
- name: Collecting changed files
uses: lots0logs/gh-action-get-changed-files@2.1.4
with:
token: ${{ secrets.GITHUB_TOKEN }}
# Run checks
- name: Check File Headers
shell: bash
run: |
sudo apt install fd-find
mv tools/.github/scripts/common inspect/.github/scripts
pwd
fdfind requirements.txt
set +e
pip install -r .github/scripts/requirements.txt
pip install -r $(fdfind -H requirements.txt)
set -e
cd inspect
.github/scripts/kernel_checker.py --json ${HOME}/files_modified.json ${HOME}/files_added.json ${HOME}/files_renamed.json
exit $?