Feat: Durable Execution Revamp #1738
This file contains hidden or 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: go | |
| on: | |
| pull_request: | |
| paths: | |
| - ".github/**" | |
| - "api/**" | |
| - "api-contracts/**" | |
| - "internal/**" | |
| - "pkg/**" | |
| - "sdks/go/**" | |
| push: | |
| branches: | |
| - main | |
| paths: | |
| - "sdks/go/**" | |
| defaults: | |
| run: | |
| working-directory: ./sdks/go | |
| jobs: | |
| compile: | |
| runs-on: ubicloud-standard-2 | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| - name: Setup Go | |
| uses: actions/setup-go@v6 | |
| with: | |
| go-version: "1.25" | |
| - name: Compile Go SDK examples | |
| run: | | |
| # Find all directories with go.mod files | |
| for dir in $(find examples -name "go.mod" -exec dirname {} \;); do | |
| echo "Compiling $dir (has go.mod)" | |
| cd "$dir" | |
| go build . | |
| cd - > /dev/null | |
| done | |
| # Find directories with main.go but no go.mod (use parent's go.mod) | |
| for dir in $(find examples -name "main.go" -exec dirname {} \; | while read d; do | |
| if [ ! -f "$d/go.mod" ]; then | |
| echo "$d" | |
| fi | |
| done | sort -u); do | |
| echo "Compiling $dir (uses parent go.mod)" | |
| cd "$dir" | |
| go build . | |
| cd - > /dev/null | |
| done |