Refactor test utilities and improve path handling in tests #17
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: Code Quality | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| jobs: | |
| clang-tidy: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: 20 | |
| cache: "npm" | |
| - name: Install dependencies | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y clang-tidy | |
| - name: Install Node dependencies | |
| run: npm ci | |
| - name: Build project | |
| run: npm run build | |
| - name: Run clang-tidy | |
| run: npm run clang-tidy | |
| memory-tests-basic: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: 20 | |
| cache: "npm" | |
| - name: Install dependencies | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y valgrind | |
| - name: Install Node dependencies | |
| run: npm ci | |
| - name: Build project | |
| run: npm run build | |
| - name: Run JavaScript memory tests | |
| run: npm run test:memory | |
| - name: Run valgrind tests | |
| run: bash scripts/valgrind.sh |