From c59ab4ba4471c8b87433719f558176cd2cafcc01 Mon Sep 17 00:00:00 2001 From: Peter Buchegger Date: Sun, 14 Jun 2020 23:34:13 +0200 Subject: [PATCH] Create c-cpp.yml --- .github/workflows/c-cpp.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .github/workflows/c-cpp.yml diff --git a/.github/workflows/c-cpp.yml b/.github/workflows/c-cpp.yml new file mode 100644 index 0000000..5fcb1b4 --- /dev/null +++ b/.github/workflows/c-cpp.yml @@ -0,0 +1,21 @@ +name: PlatformIO CI + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +jobs: + build: + + runs-on: self-hosted + + steps: + - uses: actions/checkout@v2 + - name: check for updates + run: platformio update + - name: run cppcheck + run: platformio check --fail-on-defect low --fail-on-defect medium --fail-on-defect high + - name: compile + run: platformio run