diff --git a/.github/workflows/embedded_quality_check.yml b/.github/workflows/embedded_quality_check.yml new file mode 100644 index 0000000..7e7f4a8 --- /dev/null +++ b/.github/workflows/embedded_quality_check.yml @@ -0,0 +1,15 @@ +name: Quality check + +on: + pull_request: + branches: + - master + push: + branches: + - master + +jobs: + driver-quality: + uses: sensirion/.github/.github/workflows/driver.c.check.yml@main + with: + '["."]' diff --git a/.github/workflows/github_release.yml b/.github/workflows/github_release.yml new file mode 100644 index 0000000..d98ee0e --- /dev/null +++ b/.github/workflows/github_release.yml @@ -0,0 +1,10 @@ +name: Github Release + +on: + push: + tags: + - '*' + +jobs: + github-release: + uses: sensirion/.github/.github/workflows/driver.common.github_release.yml@main diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml deleted file mode 100644 index 2262e49..0000000 --- a/.gitlab-ci.yml +++ /dev/null @@ -1,47 +0,0 @@ -stages: - - validate - - build - - test - -syntax_check: - stage: validate - image: - name: registry.gitlab.sensirion.lokal/mso-sw/drivers/docker-driver-generator:0.1.0 - tags: [linux, docker] - script: - - find . -type f -iregex ".*\.\(c\|h\|cpp\|ino\)" -exec clang-format-6.0 -i -style=file {} \; && git diff --exit-code - - -cppcheck: - stage: validate - image: - name: registry.gitlab.sensirion.lokal/mso-sw/drivers/docker-driver-generator:0.1.0 - tags: [linux, docker] - script: - - cppcheck --std=c89 --language=c --error-exitcode=1 --enable=warning,style,performance,portability -i sample-implementations/ . - -build: - stage: build - image: - name: sensirion/embedded-ci:2.3.0 - tags: [linux, docker] - script: - - make - -test: - stage: test - image: registry.gitlab.sensirion.lokal/sensirion/docker/docker-rpi-testbed:1.2.0 - tags: [mso-sw-testbed-2] - script: - - git clone -b 3.0.0 https://gitlab-ci-token:${CI_JOB_TOKEN}@gitlab/MSO-SW/drivers/testbed/i2c-mux-testbed.git - - cd tests/ - # No SDP8xx or SDP3x attached to testbed yet - # - make test - -TODO_check: - stage: validate - image: - name: registry.gitlab.sensirion.lokal/mso-sw/drivers/docker-driver-generator:0.1.0 - tags: [linux, docker] - script: - - '! grep -rnw --exclude=.gitlab-ci.yml --exclude-dir=.git . -e "TODO: DRIVER_GENERATOR"'