Add cli request replay #66
Workflow file for this run
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
| # This workflow will build a golang project | |
| # For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-go | |
| name: Portr server | |
| on: | |
| push: | |
| branches: ["main"] | |
| paths: | |
| - "cmd/**" | |
| - "internal/**" | |
| - "migrations/**" | |
| - "tests/**" | |
| - "go.mod" | |
| - "go.sum" | |
| - "Dockerfile" | |
| - ".github/workflows/portr-server.yml" | |
| pull_request: | |
| branches: ["main"] | |
| paths: | |
| - "cmd/**" | |
| - "internal/**" | |
| - "migrations/**" | |
| - "tests/**" | |
| - "go.mod" | |
| - "go.sum" | |
| - "Dockerfile" | |
| - ".github/workflows/portr-server.yml" | |
| permissions: | |
| contents: read | |
| jobs: | |
| build: | |
| name: Run server tests | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Setup Bun | |
| uses: oven-sh/setup-bun@v2 | |
| with: | |
| bun-version: 1.3.11 | |
| - name: Install client dependencies | |
| run: bun install --cwd internal/client/dashboard/ui-v2 --frozen-lockfile | |
| - name: Build client | |
| run: bun run --cwd internal/client/dashboard/ui-v2 build | |
| - name: Set up Go | |
| uses: actions/setup-go@v5 | |
| with: | |
| go-version: "1.25" | |
| cache: true | |
| - name: Build server | |
| run: go build -v ./... | |
| - name: Test server | |
| run: go test -v ./... |