mirror of
https://github.com/allankoechke/cparse.git
synced 2026-12-01 09:13:31 +00:00
25 lines
594 B
YAML
25 lines
594 B
YAML
name: CI
|
|
|
|
on:
|
|
push: {}
|
|
pull_request:
|
|
types: [opened, reopened]
|
|
|
|
jobs:
|
|
tests:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- name: Check GCC version
|
|
run: gcc --version
|
|
- name: Install CppCheck
|
|
run: sudo apt-get install cppcheck
|
|
- name: Install CppLint
|
|
run: pipx install cpplint
|
|
- name: Run Linters
|
|
run: |
|
|
cpplint --filter=-whitespace/line_length,-legal/copyright,-runtime/explicit *.cpp *.h
|
|
cppcheck --suppress='*:catch.hpp' . --force
|
|
- name: Run Tests
|
|
run: make test
|