Skip to content

chore: update Portainer MCP Server version to 0.5.1 and adjust tool c… #51

chore: update Portainer MCP Server version to 0.5.1 and adjust tool c…

chore: update Portainer MCP Server version to 0.5.1 and adjust tool c… #51

Workflow file for this run

name: CI
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
types: [opened, reopened, synchronize]
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: "checkout the current branch"
uses: actions/checkout@v4
- name: "set up golang"
uses: actions/[email protected]
with:
go-version-file: go.mod
cache-dependency-path: go.sum
- name: "Build the binary"
run: make build
- name: "Run unit tests"
run: make test-coverage
- name: "Run integration tests"
run: make test-integration
- name: "check test coverage"
uses: vladopajic/go-test-coverage@v2
with:
profile: coverage.out
git-token: ${{ github.ref_name == 'main' && secrets.GITHUB_TOKEN || '' }}
git-branch: badges
- name: "Archive code coverage results"
uses: actions/upload-artifact@v4
with:
name: code-coverage
path: coverage.out
code_coverage:
name: "Code coverage report"
runs-on: ubuntu-latest
needs: build
if: github.event_name == 'pull_request'
permissions:
contents: read
actions: read
pull-requests: write
steps:
- name: "checkout the current branch"
uses: actions/checkout@v4
- uses: fgrosse/[email protected]
with:
coverage-file-name: "coverage.out"