added explanitory comments and information in DevNotes #37
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
| # Run tests | |
| name: CI | |
| # Controls when the workflow will run | |
| on: [push, pull_request, workflow_dispatch] | |
| # A workflow run is made up of one or more jobs that can run sequentially or in parallel | |
| jobs: | |
| # This workflow contains a single job called "build" | |
| build: | |
| # The type of runner that the job will run on | |
| runs-on: ubuntu-latest | |
| # Steps represent a sequence of tasks that will be executed as part of the job | |
| steps: | |
| # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it | |
| - name: Checkout Symbulation | |
| uses: actions/checkout@v4 | |
| with: | |
| submodules: "recursive" | |
| - name: run symbulation | |
| run: make debug-default && ./symbulation_default -WORLD_WIDTH 5 -WORLD_HEIGHT 5 | |
| # Runs a single command using the runners shell | |
| - name: Make tests | |
| run: sudo apt-get update && sudo apt-get install gdb && make coverage | |
| - name: Generate coverage | |
| run: gcov -abcfu symbulation.test-main.cc | |
| - name: Upload coverage | |
| uses: codecov/codecov-action@v5 | |
| with: | |
| exclude: source/catch,source/json,source/test | |
| env: | |
| CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} | |
| #- name: test web build | |
| # run: cd SymbulationEmp/emsdk && ./emsdk install 3.1.18 && ./emsdk activate 3.1.18 && source ./emsdk_env.sh && cd .. && make web |