docs: compare watch/show flags #270
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 | |
| on: | |
| push: | |
| branches: [ main, master ] | |
| pull_request: | |
| branches: [ main, master ] | |
| jobs: | |
| test: | |
| name: Test | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| # Test against recent Go versions for compatibility | |
| go-version: [ '1.25.7' ] | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: Set up Go | |
| uses: actions/setup-go@v5 | |
| with: | |
| go-version: ${{ matrix.go-version }} | |
| cache-dependency-path: go.sum | |
| - name: Set up Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: '22' | |
| cache: 'npm' | |
| cache-dependency-path: cmd/watch/web/package-lock.json | |
| - name: Download Go dependencies | |
| run: go mod download | |
| - name: Verify Go dependencies | |
| run: go mod verify | |
| - name: Install frontend dependencies | |
| run: make install-web | |
| - name: Build frontend | |
| run: make build-web | |
| - name: Run frontend tests | |
| run: make test-web | |
| - name: Run tests with coverage | |
| run: make test-coverage | |
| - name: Generate coverage profile | |
| run: make coverage | |
| - name: Generate coverage HTML report | |
| run: make coverage-html | |
| continue-on-error: true | |
| - name: Upload coverage artifacts | |
| uses: actions/upload-artifact@v4 | |
| if: always() | |
| with: | |
| name: coverage-report-go-${{ matrix.go-version }} | |
| path: | | |
| coverage.out | |
| coverage.html | |
| retention-days: 30 |