Skip to content

Build API Module #41132

Build API Module

Build API Module #41132

Workflow file for this run

name: Build API Module
run-name: Build API Module
on:
pull_request:
paths:
- .github/workflows/build-api.yaml
- 'api/**/*.go'
- 'api/go.mod'
- 'api/go.sum'
- 'go.mod'
- 'go.sum'
merge_group:
paths:
- .github/workflows/build-api.yaml
- 'api/**/*.go'
- 'api/go.mod'
- 'api/go.sum'
- 'go.mod'
- 'go.sum'
jobs:
build:
name: Build API
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: Checkout Teleport
uses: actions/checkout@v4
- name: Setup Go
uses: actions/setup-go@v5
with:
# use the version declared in API's go.mod
go-version-file: api/go.mod
cache-dependency-path: api/go.sum
- name: Build
run: cd api; go build ./...