Skip to content

Update publish.yml

Update publish.yml #1

Workflow file for this run

name: CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
test:
name: Test
environment: CI
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: '1.21'
cache: true
- name: Install dependencies
run: go mod tidy
working-directory: .
- name: Run tests with coverage
run: go test -race -coverprofile=coverage.txt -covermode=atomic ./...
working-directory: .
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
slug: ckanthony/openapi-mcp