Move to MUI #6
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: Tests & Coverage | |
| on: | |
| pull_request: | |
| branches: [ master, main, develop ] | |
| jobs: | |
| tests: | |
| name: Run Tests & Coverage | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Go | |
| uses: actions/setup-go@v4 | |
| with: | |
| go-version: '1.25' | |
| - name: Set up Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: '24' | |
| cache: 'npm' | |
| cache-dependency-path: frontend/package-lock.json | |
| - name: Install dependencies | |
| run: | | |
| go mod download | |
| cd frontend && npm ci | |
| - name: Run Go tests with coverage | |
| run: go test ./... -v -coverprofile=coverage.out -covermode=atomic | |
| - name: Run frontend tests with coverage | |
| working-directory: ./frontend | |
| run: | | |
| export NODE_OPTIONS="--max-old-space-size=4096 --no-warnings" | |
| npm run test:coverage | |
| env: | |
| NODE_ENV: test | |
| VITEST_MAX_THREADS: 1 | |
| VITEST_MIN_THREADS: 1 | |
| CI: true | |
| - name: Upload Go coverage to Codecov | |
| uses: codecov/codecov-action@v5 | |
| with: | |
| token: ${{ secrets.CODECOV_TOKEN }} | |
| files: ./coverage.out | |
| flags: backend | |
| fail_ci_if_error: false | |
| verbose: true | |
| - name: Upload frontend coverage to Codecov | |
| uses: codecov/codecov-action@v5 | |
| with: | |
| token: ${{ secrets.CODECOV_TOKEN }} | |
| directory: ./frontend/coverage | |
| flags: frontend | |
| fail_ci_if_error: false | |
| verbose: true | |