Run linting commands
This commit is contained in:
@ -2,9 +2,15 @@ name: Example Action
|
||||
on: [push]
|
||||
|
||||
jobs:
|
||||
Example-Actions:
|
||||
Lint:
|
||||
runs-on: linepics
|
||||
steps:
|
||||
- run: echo "🎉 The job was automatically triggered by a ${{ gitea.event_name }} event."
|
||||
- run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by Gitea!"
|
||||
- run: echo "🔎 The name of your branch is ${{ gitea.ref }} and your repository is ${{ gitea.repository }}."
|
||||
- name: cppcheck
|
||||
run: cppcheck --std=c++17 --addon=cert --addon=misc --error-exitcode=1 src/*.cpp
|
||||
- name: formatting
|
||||
run: clang-format --style=file --Werror --dry-run src/*.cpp
|
||||
Build:
|
||||
runs-on: linepics
|
||||
steps:
|
||||
- run: |
|
||||
ls -lsah
|
||||
|
Reference in New Issue
Block a user