Skip to content

Only use -Werror in CI #3

Only use -Werror in CI

Only use -Werror in CI #3

Workflow file for this run

---
on:
push:
branches: master
pull_request:
branches: master
jobs:
main:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install cppcheck
run: sudo apt-get install -y cppcheck
- name: Run cppcheck
run: cppcheck --enable=all --inline-suppr --suppress=missingIncludeSystem --force *.c
- name: Build
run: CFLAGS=-Werror make
- name: Test
run: test "$(./qrcode -n -e 'Hello, World!' | ./qrcode -d)" = 'Hello, World!'