Skip to content

fix: run helm chart ci when workflow file changes too (#598) #61

fix: run helm chart ci when workflow file changes too (#598)

fix: run helm chart ci when workflow file changes too (#598) #61

Workflow file for this run

name: sdk-go-ci
on:
push:
branches:
- main
pull_request:
paths:
- 'sdk-go/**'
workflow_dispatch:
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: '1.24'
cache: true
- name: Install dependencies
working-directory: ./sdk-go
run: go mod download
- name: Run tests
working-directory: ./sdk-go
run: go test -v ./...
- name: Install example dependencies
working-directory: ./sdk-go/examples
run: go mod download
- name: Run examples
working-directory: ./sdk-go/examples
run: go run cmd/main.go --ci run-examples
env:
LANGWATCH_API_KEY: ${{ secrets.GO_SDK_LANGWATCH_API_KEY }}
OPENAI_API_KEY: ${{ secrets.GO_SDK_OPENAI_API_KEY }}
typecheck:
runs-on: ubuntu-latest
steps:
- run: echo "no typechecking is needed for go"
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: '1.24'
cache: true
- name: Install dependencies
working-directory: ./sdk-go
run: go mod download
- name: Build
working-directory: ./sdk-go
run: go build -v ./...