Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
18 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
49 changes: 49 additions & 0 deletions .github/workflows/agent-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: Agent CI

on:
pull_request:
paths:
- "agent/**"
- ".github/workflows/agent-ci.yml"
push:
branches:
- main
paths:
- "agent/**"
- ".github/workflows/agent-ci.yml"

permissions:
contents: read

concurrency:
group: agent-ci-${{ github.ref }}
cancel-in-progress: true

jobs:
test:
runs-on: ubuntu-latest
defaults:
run:
working-directory: agent

steps:
- name: Checkout
uses: actions/checkout@v6

- name: Setup Go
uses: actions/setup-go@v6
with:
go-version-file: agent/go.mod
cache-dependency-path: agent/go.sum

- name: Test
run: go test ./...

- name: Vet
run: go vet ./...

- name: Install staticcheck
run: GOBIN=$PWD/.bin go install honnef.co/go/tools/cmd/staticcheck@latest

- name: Staticcheck
run: ./.bin/staticcheck ./...
4 changes: 0 additions & 4 deletions .github/workflows/agent-tip-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,6 @@ jobs:
goarch: amd64
- goos: linux
goarch: arm64
- goos: darwin
goarch: amd64
- goos: darwin
goarch: arm64

steps:
- name: Checkout
Expand Down
26 changes: 26 additions & 0 deletions .github/workflows/react-doctor.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: React Doctor

on:
pull_request:
types: [opened, synchronize, reopened, ready_for_review]
push:
branches: [main]

permissions:
contents: read
pull-requests: write
issues: write
statuses: write

concurrency:
group: react-doctor-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

jobs:
react-doctor:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
with:
fetch-depth: 0
- uses: millionco/react-doctor@v2
4 changes: 0 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,6 @@ jobs:
goarch: amd64
- goos: linux
goarch: arm64
- goos: darwin
goarch: amd64
- goos: darwin
goarch: arm64

steps:
- name: Checkout
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@

# misc
.DS_Store
.idea/
*.pem

# debug
Expand Down
136 changes: 0 additions & 136 deletions agent/MACOS.md

This file was deleted.

4 changes: 0 additions & 4 deletions agent/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,3 @@ sudo journalctl -u techulus-agent -f
```bash
podman ps -a --format "table {{.Names}}\t{{.State}}\t{{.Labels}}"
```

## macOS

See [MACOS.md](./MACOS.md) for macOS-specific setup and troubleshooting.
11 changes: 0 additions & 11 deletions agent/internal/agent/agent.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,17 +25,6 @@ const (
StateProcessing
)

func (s AgentState) String() string {
switch s {
case StateIdle:
return "IDLE"
case StateProcessing:
return "PROCESSING"
default:
return "UNKNOWN"
}
}

type Config struct {
ServerID string `json:"serverId"`
SubnetID int `json:"subnetId"`
Expand Down
Loading
Loading