Build API Module #4
This file contains 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
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 ./... |