Skip to content

Commit

Permalink
Merge pull request #98 from Sensirion/migrate-to-github-workflow
Browse files Browse the repository at this point in the history
Migrate from Circle-CI to github workflows
  • Loading branch information
psachs authored Apr 19, 2024
2 parents 408446c + 3f9c2e4 commit f1766fe
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 41 deletions.
41 changes: 0 additions & 41 deletions .circleci/config.yml

This file was deleted.

23 changes: 23 additions & 0 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: syntax, static code analyis and build check for c drivers

on:
pull_request:
branches:
- master
push:
branches:
- master

jobs:
code-analysis:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: awalsh128/cache-apt-pkgs-action@v1
with:
packages: cppcheck clang-format
version: 1.0
- name: clang-format syntax-check
run: find . -type f -iregex ".*\.\(c\|h\|cpp\|ino\)" -exec clang-format -i -style=file {} \; && git diff --exit-code
- name: cppcheck static code analyis
run: cppcheck --std=c89 --language=c --error-exitcode=1 --enable=warning,style,performance,portability --suppress=unreadVariable -i i2c/sample-implementations/ -i shdlc/sample-implementations/ . .

0 comments on commit f1766fe

Please # to comment.