Skip to content

Merge pull request #59 from Sensirion/migrate-to-gitlab-ci #4

Merge pull request #59 from Sensirion/migrate-to-gitlab-ci

Merge pull request #59 from Sensirion/migrate-to-gitlab-ci #4

Workflow file for this run

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: cppcheck static code analyis
run: cppcheck --std=c89 --language=c --error-exitcode=1 --enable=warning,style,performance,portability --suppress=unreadVariable -i embedded-common/ -i release/ .