Bump rollup from 3.29.1 to 4.5.0 #355
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: C code formatting | |
on: | |
pull_request: | |
push: | |
branches: | |
- main | |
- dev | |
defaults: | |
run: | |
shell: bash | |
working-directory: lib | |
jobs: | |
formatting-check: | |
name: C Expressive Formatting Check | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Run clang-format style check for C/C++ programs. | |
uses: jidicula/[email protected] | |
with: | |
clang-format-version: '15' | |
lint: | |
name: C Lint Check | |
runs-on: ubuntu-latest | |
steps: | |
# we need this to get <assemblyline.h> to get linting right | |
- uses: 0xADE1A1DE/AssemblyLine@main | |
# we need this to get <node/node_api.h> to get linting right | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
- uses: actions/checkout@v3 | |
- name: C/C++ Lint Action | |
uses: cpp-linter/cpp-linter-action@v2 | |
id: linter | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
files-changed-only: false | |
thread-comments: true | |
style: file | |
version: 14 | |
tidy-checks: "" | |
ignore: ".github" | |
extra-args: "-std=c17 -I./lib/src -I./lib/test -I./lib/src/include -DUSE_ASSEMBLYLINE" | |
- name: Fail fast?! | |
if: steps.linter.outputs.checks-failed > 0 | |
run: | | |
echo "Some files failed the linting checks!"; exit 1 | |