Skip to content

[PM-12989] Create process for qa to build client with particular sdk version #1725

[PM-12989] Create process for qa to build client with particular sdk version

[PM-12989] Create process for qa to build client with particular sdk version #1725

Workflow file for this run

name: Build Go SDK
on:
push:
branches:
- main
- rc
- hotfix-rc
pull_request:
env:
GO111MODULE: on
GO_VERSION: "^1.21"
jobs:
build:
name: Build
runs-on: ubuntu-22.04
steps:
- name: Checkout Repository
uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1
- name: Setup Go environment
uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5.0.2
with:
go-version: ${{ env.GO_VERSION }}
- name: Cache dependencies
uses: actions/cache@3624ceb22c1c5a301c8db4169662070a689d9ea8 # v4.1.1
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: npm ci
run: npm ci
- name: Generate schemas
run: npm run schemas
- name: Build
working-directory: languages/go
run: go build -v ./...
- name: Test
working-directory: languages/go
run: go test -v ./...