Add Double Buffering to GPS Driver #425
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: Unit Test | |
| on: | |
| push: | |
| branches: [ "main" ] | |
| pull_request: | |
| type: [opened, synchronize, reopened] | |
| jobs: | |
| unit_test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Install dependencies | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y libgtest-dev libgmock-dev | |
| - name: Checkout repo | |
| uses: actions/checkout@v4 | |
| with: | |
| submodules: true | |
| - name: Build tests | |
| working-directory: ./zeropilot4.0/tests | |
| run: bash ./testbuild.bash -c l552 | |
| - name: Run tests | |
| working-directory: ./zeropilot4.0/tests | |
| run: | | |
| chmod +x build/gtestzeropilot4.0 | |
| ./build/gtestzeropilot4.0 |