Create c-cpp.yml

This commit is contained in:
Peter Buchegger 2020-06-14 23:34:13 +02:00 committed by GitHub
parent 8128b94619
commit c59ab4ba44
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

21
.github/workflows/c-cpp.yml vendored Normal file
View file

@ -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