Changes required from secvarctl development #12
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: tests | |
on: ['push', 'pull_request'] | |
jobs: | |
unit-tests: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: install test dependencies | |
run: sudo apt update && sudo apt install -y libssl-dev | |
- name: build libraries | |
run: make | |
- name: build tests | |
run: make tests | |
- name: run tests | |
run: make check | |
static-analysis: | |
runs-on: ubuntu-latest | |
needs: unit-tests | |
steps: | |
- uses: actions/checkout@v2 | |
- name: install dependencies | |
run: sudo apt update && sudo apt install -y libssl-dev cppcheck clang-tools clang valgrind | |
- name: run scan-build | |
run: make clean && scan-build make | |
- name: run cppcheck | |
run: make cppcheck | |
- name: run valgrind | |
run: make memcheck |