feat(webui): hamburger menu scenario parity with HA card #74
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: Test | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| jobs: | |
| c-tests: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Install dependencies | |
| run: | | |
| sudo apt update | |
| sudo apt install -y libao-dev libavcodec-dev libavformat-dev \ | |
| libavutil-dev libavfilter-dev libjson-c-dev libgcrypt20-dev \ | |
| libcurl4-openssl-dev libwebsockets-dev libasound2-dev \ | |
| libblas-dev liblapack-dev check lcov | |
| # Match build.yml: omit default -DNDEBUG on PRs so HAVE_DEBUGLOG is defined (PIANOBAR_DEBUG). | |
| - name: Debug-friendly C flags on pull requests | |
| if: github.event_name == 'pull_request' | |
| run: echo 'CFLAGS=-g -O0' >> $GITHUB_ENV | |
| - name: Build and test with coverage | |
| run: make test-coverage | |
| - name: Upload C coverage to Codecov | |
| uses: codecov/codecov-action@v5 | |
| with: | |
| token: ${{ secrets.CODECOV_TOKEN }} | |
| files: coverage.info | |
| flags: c-tests | |
| fail_ci_if_error: false | |
| web-tests: | |
| runs-on: ubuntu-latest | |
| defaults: | |
| run: | |
| working-directory: webui | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v5 | |
| with: | |
| node-version: '18' | |
| cache: 'npm' | |
| cache-dependency-path: webui/package-lock.json | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Unit tests | |
| run: npm test -- --run --coverage | |
| - name: Upload web coverage to Codecov | |
| uses: codecov/codecov-action@v5 | |
| with: | |
| token: ${{ secrets.CODECOV_TOKEN }} | |
| directory: webui/coverage | |
| flags: web-tests | |
| fail_ci_if_error: false |