Package Hermes Agent as a built-in guest #364
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
| # SPDX-FileCopyrightText: Copyright 2025 Stacklok, Inc. | |
| # SPDX-License-Identifier: Apache-2.0 | |
| name: CI | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| permissions: | |
| contents: read | |
| env: | |
| GH_TOKEN: ${{ github.token }} | |
| jobs: | |
| test: | |
| name: Test (${{ matrix.os }}) | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| matrix: | |
| os: [ubuntu-latest, macos-15] | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v6 | |
| - name: Set up Go | |
| uses: actions/setup-go@v6 | |
| with: | |
| go-version-file: go.mod | |
| cache: true | |
| - name: Install Task | |
| uses: go-task/setup-task@v2 | |
| - name: Build bbox-init (for go:embed) | |
| run: task build-init | |
| - name: Run tests | |
| run: task test | |
| lint: | |
| name: Lint (${{ matrix.os }}) | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| matrix: | |
| os: [ubuntu-latest, macos-15] | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v6 | |
| - name: Set up Go | |
| uses: actions/setup-go@v6 | |
| with: | |
| go-version-file: go.mod | |
| cache: true | |
| - name: Install Task | |
| uses: go-task/setup-task@v2 | |
| - name: Install golangci-lint | |
| uses: golangci/golangci-lint-action@v9 | |
| with: | |
| install-only: true | |
| - name: Build bbox-init (for go:embed) | |
| run: task build-init | |
| - name: Run linter | |
| run: task lint | |
| build: | |
| name: Build (${{ matrix.os }}) | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| matrix: | |
| os: [ubuntu-latest, macos-15] | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v6 | |
| - name: Set up Go | |
| uses: actions/setup-go@v6 | |
| with: | |
| go-version-file: go.mod | |
| cache: true | |
| - name: Install Task | |
| uses: go-task/setup-task@v2 | |
| - name: Build | |
| run: task build | |
| integration-test: | |
| name: Integration Test (MCP) | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v6 | |
| - name: Set up Go | |
| uses: actions/setup-go@v6 | |
| with: | |
| go-version-file: go.mod | |
| cache: true | |
| - name: Install Task | |
| uses: go-task/setup-task@v2 | |
| - name: Build bbox-init (for go:embed) | |
| run: task build-init | |
| - name: Install ToolHive | |
| uses: StacklokLabs/toolhive-actions/install@v0 | |
| - name: Run MCP server | |
| uses: StacklokLabs/toolhive-actions/run-mcp-server@v0 | |
| with: | |
| server: fetch | |
| - name: Run integration tests | |
| run: go test -v -race -run Integration ./internal/infra/mcp/ | |
| images: | |
| name: Build Images | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v6 | |
| - name: Set up QEMU | |
| uses: docker/setup-qemu-action@v4 | |
| - name: Set up Docker Buildx | |
| uses: docker/setup-buildx-action@v4 | |
| - name: Build images | |
| uses: docker/bake-action@v7 | |
| with: | |
| files: docker-bake.hcl |