• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#                          __  __            _
2#                       ___\ \/ /_ __   __ _| |_
3#                      / _ \\  /| '_ \ / _` | __|
4#                     |  __//  \| |_) | (_| | |_
5#                      \___/_/\_\ .__/ \__,_|\__|
6#                               |_| XML parser
7#
8# Copyright (c) 2021-2022 Sebastian Pipping <sebastian@pipping.org>
9# Licensed under the MIT license:
10#
11# Permission is  hereby granted,  free of charge,  to any  person obtaining
12# a  copy  of  this  software   and  associated  documentation  files  (the
13# "Software"),  to  deal in  the  Software  without restriction,  including
14# without  limitation the  rights  to use,  copy,  modify, merge,  publish,
15# distribute, sublicense, and/or sell copies of the Software, and to permit
16# persons  to whom  the Software  is  furnished to  do so,  subject to  the
17# following conditions:
18#
19# The above copyright  notice and this permission notice  shall be included
20# in all copies or substantial portions of the Software.
21#
22# THE  SOFTWARE  IS  PROVIDED  "AS  IS",  WITHOUT  WARRANTY  OF  ANY  KIND,
23# EXPRESS  OR IMPLIED,  INCLUDING  BUT  NOT LIMITED  TO  THE WARRANTIES  OF
24# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
25# NO EVENT SHALL THE AUTHORS OR  COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
26# DAMAGES OR  OTHER LIABILITY, WHETHER  IN AN  ACTION OF CONTRACT,  TORT OR
27# OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
28# USE OR OTHER DEALINGS IN THE SOFTWARE.
29
30name: Run Cppcheck (from macOS Homebrew)
31
32on:
33  pull_request:
34  push:
35  schedule:
36    - cron: '0 2 * * 5'  # Every Friday at 2am
37
38jobs:
39  checks:
40    name: Run Cppcheck
41    runs-on: macos-11
42    steps:
43    - uses: actions/checkout@v3.1.0
44    - name: Install runtime dependencies
45      run: |
46        exec brew install cppcheck findutils
47    - name: Run Cppcheck
48      run: |
49        exec .github/workflows/scripts/mass-cppcheck.sh
50