Skip to content

Commit

Permalink
Merge pull request #84 from maxmind/greg/clang-static-analysis
Browse files Browse the repository at this point in the history
Run Clang static analysis on extension build
  • Loading branch information
horgh authored Sep 15, 2021
2 parents b00eac5 + f88607a commit c37eed5
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/clang-analyzer.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Clang Static Analysis

on:
push:
pull_request:
schedule:
- cron: '3 15 * * SUN'

jobs:
clang-analyzer:
name: Clang Static Analysis
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2

- name: Install libmaxminddb
run: sudo apt install clang-tools libmaxminddb-dev

- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.x

- name: Build and run analyzer
run: CFLAGS="-Werror -Wall -Wextra" scan-build --status-bugs python setup.py build

0 comments on commit c37eed5

Please sign in to comment.