Refactor net library: Zero-Copy enforcement, Atomic Reads, and Test c… #103
This file contains hidden or 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: CI | |
| on: | |
| push: | |
| branches: [ master, dev ] | |
| pull_request: | |
| branches: [ master, dev ] | |
| permissions: | |
| contents: read | |
| id-token: write | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install dependencies | |
| run: | | |
| sudo apt update | |
| sudo apt install -y build-essential lcov | |
| - name: Build with coverage flags | |
| run: | | |
| cd app | |
| make all | |
| make | |
| - name: Run Unity Tests | |
| run: | | |
| cd app | |
| make test | |
| - name: Generate coverage report | |
| run: | | |
| cd app | |
| lcov --capture --directory . --output-file build/coverage.info --ignore-errors mismatch | |
| lcov --remove build/coverage.info '/usr/*' --output-file build/coverage.info | |
| lcov --list build/coverage.info | |
| - name: Upload to Qlty | |
| uses: qltysh/qlty-action/coverage@v1 | |
| with: | |
| oidc: true | |
| files: app/build/coverage.info |