add web-ui #51
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
| name: Go Tests | |
| on: | |
| push: | |
| branches: [ main ] | |
| pull_request: | |
| branches: [ main ] | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Set up Go | |
| uses: actions/setup-go@v5 | |
| with: | |
| go-version: 'stable' | |
| - name: Install dependencies | |
| run: go mod download | |
| - name: Run tests | |
| run: go test ./internal/... -v | |
| - name: Run staticcheck | |
| run: | | |
| go tool honnef.co/go/tools/cmd/staticcheck ./internal/... ./cmd/... | |
| - name: Set up Docker Buildx | |
| uses: docker/setup-buildx-action@v3 | |
| - name: Run Docker Compose Tests | |
| run: | | |
| if [ ! -d "test" ]; then | |
| echo "Error: test directory not found" | |
| exit 1 | |
| fi | |
| cd test | |
| docker compose up --build test --exit-code-from test |