name: ci-agent on: push: branches: [backend] pull_request: branches: [master] defaults: run: working-directory: agent jobs: build: runs-on: ubuntu-latest steps: - name: Checkout uses: actions/checkout@v6 - name: Go setup uses: actions/setup-go@v6 with: go-version: "1.26.1" cache: false - name: Install deps run: go mod tidy - name: Golangci-lint uses: golangci/golangci-lint-action@v9 with: args: --timeout=5m skip-cache: true working-directory: agent - name: Run tests run: go test ./... - name: Build run: go build -o agent ./cmd/main.go