Skip to content

Commit 8ff83cd

Browse files
feat(api): Updated go-sdk to adopt Code Engine API specification changes
1 parent b85120a commit 8ff83cd

File tree

15 files changed

+4774
-2290
lines changed

15 files changed

+4774
-2290
lines changed

.github/pull_request_template.md

Lines changed: 0 additions & 36 deletions
This file was deleted.
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
name: Integration tests
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- main
7+
8+
# Allows you to run this workflow manually from the Actions tab
9+
workflow_dispatch:
10+
11+
env:
12+
GOPRIVATE: github.ibm.com
13+
GOPROXY: ${{ secrets.GOPROXY }}
14+
GO111MODULE: on
15+
CE_LOG_LEVEL: info
16+
17+
jobs:
18+
sdk-integration-tests:
19+
runs-on: ibm-x86-64-medium
20+
steps:
21+
- uses: actions/checkout@v4
22+
- uses: actions/setup-go@v5
23+
with:
24+
go-version: stable
25+
- name: Install golangci and gosec
26+
run: |
27+
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin
28+
curl -sfL https://raw.githubusercontent.com/securego/gosec/master/install.sh | sh -s -- -b $(go env GOPATH)/bin
29+
- name: Run Github Action ci
30+
run: make github-action-ci
31+
- name: Checkout API for latest domain mapping certs
32+
uses: actions/checkout@v4
33+
with:
34+
repository: 'coligo/api'
35+
ref: 'main'
36+
path: "api"
37+
token: ${{ secrets.DEVOPS_GITHUB_TOKEN }}
38+
- name: Run Integration Test
39+
env:
40+
CE_ACCOUNT_ID: ${{ secrets.CE_ACCOUNT_ID }}
41+
CE_API_HOST: ${{ vars.CE_API_HOST }}
42+
CE_API_KEY: ${{ secrets.CE_TEST_API_KEY }}
43+
CE_DOMAIN_MAPPING_NAME: ${{ vars.CE_DOMAIN_MAPPING_NAME }}
44+
CE_PROJECT_ID: ${{ secrets.CE_PROJECT_ID }}
45+
COS_ACCESS_KEY_ID: ${{ secrets.COS_ACCESS_KEY_ID }}
46+
COS_SECRET_ACCESS_KEY: ${{ secrets.COS_SECRET_ACCESS_KEY }}
47+
IAM_ENDPOINT: ${{ vars.IAM_ENDPOINT }}
48+
RESOURCECONTROLLER_ENDPOINT: ${{ vars.RESOURCECONTROLLER_ENDPOINT }}
49+
run: ./test-integration.sh

.metadata

Lines changed: 0 additions & 9 deletions
This file was deleted.

Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ COVERAGE = -coverprofile=coverage.txt -covermode=atomic
77

88
all: tidy test lint scan-gosec
99
travis-ci: ssh-config test-cov lint scan-gosec tidy
10+
github-action-ci: test-cov lint scan-gosec tidy
1011

1112
ssh-config:
1213
git config --global url.ssh://[email protected]/.insteadOf https://github.ibm.com/

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
[![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/semantic-release/semantic-release)
44

5-
# IBM Cloud Code Engine Go SDK 4.31.0
5+
# IBM Cloud Code Engine Go SDK 4.32.0
66
Go client library to interact with the [Code Engine API](https://cloud.ibm.com/apidocs/codeengine).
77

88
## Table of Contents
@@ -18,7 +18,7 @@ Go client library to interact with the [Code Engine API](https://cloud.ibm.com/a
1818

1919
<!-- toc -->
2020

21-
- [IBM Cloud Code Engine Go SDK 4.31.0](#ibm-cloud-code-engine-go-sdk-310)
21+
- [IBM Cloud Code Engine Go SDK 4.32.0](#ibm-cloud-code-engine-go-sdk-310)
2222
- [Table of Contents](#table-of-contents)
2323
- [Overview](#overview)
2424
- [Prerequisites](#prerequisites)
@@ -53,7 +53,7 @@ Service Name | Package name
5353
* Go version 1.21 or above.
5454

5555
## Installation
56-
The current version of this SDK: 4.31.0
56+
The current version of this SDK: 4.32.0
5757

5858
There are a few different ways to download and install the Code Engine Go SDK project for use by your
5959
Go application:
@@ -86,7 +86,7 @@ to your `Gopkg.toml` file. Here is an example:
8686
```
8787
[[constraint]]
8888
name = "github.com/IBM/code-engine-go-sdk"
89-
version = "4.31.0"
89+
version = "4.32.0"
9090
9191
```
9292

0 commit comments

Comments
 (0)