feat: Reach every agent endpoint from the CLI #9
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: CI | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| goos: [linux, darwin] | |
| goarch: [amd64, arm64] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Go | |
| uses: actions/setup-go@v5 | |
| with: | |
| go-version: '1.25' | |
| - name: Download dependencies | |
| run: make deps | |
| - name: Build binary | |
| env: | |
| GOOS: ${{ matrix.goos }} | |
| GOARCH: ${{ matrix.goarch }} | |
| run: go build -o flatrun-${{ matrix.goos }}-${{ matrix.goarch }} ./cmd/flatrun | |
| - name: Upload binary | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: flatrun-${{ matrix.goos }}-${{ matrix.goarch }} | |
| path: flatrun-${{ matrix.goos }}-${{ matrix.goarch }} | |
| retention-days: 30 | |
| test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Go | |
| uses: actions/setup-go@v5 | |
| with: | |
| go-version: '1.25' | |
| - name: Download dependencies | |
| run: make deps | |
| - name: Check formatting | |
| run: make fmt-check | |
| - name: Run vet | |
| run: make vet | |
| - name: Run tests | |
| run: make test | |
| lint: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Go | |
| uses: actions/setup-go@v5 | |
| with: | |
| go-version: '1.25' | |
| - name: Run golangci-lint | |
| uses: golangci/golangci-lint-action@v7 | |
| with: | |
| version: v2.11.3 | |
| args: --timeout=5m |