Skip to content

Commit dd29c93

Browse files
Updated go version in builds
1 parent d5e4f7f commit dd29c93

2 files changed

Lines changed: 43 additions & 40 deletions

File tree

.github/workflows/go.yml

Lines changed: 13 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -10,17 +10,17 @@ jobs:
1010
test:
1111
strategy:
1212
matrix:
13-
go-version: [1.21.x]
13+
go-version: [1.25.x]
1414
platform: [ubuntu-latest]
1515
runs-on: ${{ matrix.platform }}
1616
steps:
1717
- name: Install Go
1818
if: success()
19-
uses: actions/setup-go@v1
19+
uses: actions/setup-go@v5
2020
with:
2121
go-version: ${{ matrix.go-version }}
2222
- name: Checkout code
23-
uses: actions/checkout@v1
23+
uses: actions/checkout@v4
2424
- name: Run tests
2525
run: make test
2626
detectsecrets:
@@ -44,42 +44,38 @@ jobs:
4444
steps:
4545
- name: Install Go
4646
if: success()
47-
uses: actions/setup-go@v1
47+
uses: actions/setup-go@v5
4848
with:
49-
go-version: 1.21.x
49+
go-version: 1.25.x
5050
- name: Checkout code
51-
uses: actions/checkout@v1
51+
uses: actions/checkout@v4
5252
- name: Calc coverage
5353
run: |
5454
export PATH=$PATH:$(go env GOPATH)/bin
55-
go get -v -t -d ./...
55+
go mod vendor
5656
go test -v `go list ./... | grep -v '/vendor/'` -covermode=count -coverprofile=coverage.out
5757
# Required because the coverage.out file on github actions has a path that breaks gcov2lcov
5858
sed -i "s/$(pwd|sed 's/\//\\\//g')/./g" coverage.out
59-
- name: Convert coverage to lcov
60-
uses: jandelgado/gcov2lcov-action@v1.0.8
61-
with:
62-
infile: coverage.out
63-
outfile: coverage.lcov
6459
- name: Coveralls
6560
uses: coverallsapp/github-action@master
6661
with:
6762
github-token: ${{ secrets.github_token }}
68-
path-to-lcov: coverage.lcov
63+
file: coverage.out
64+
format: golang
6965

7066
build:
7167
name: Build
7268
runs-on: ubuntu-latest
7369
steps:
7470

75-
- name: Set up Go 1.21
76-
uses: actions/setup-go@v1
71+
- name: Set up Go
72+
uses: actions/setup-go@v5
7773
with:
78-
go-version: 1.21
74+
go-version: 1.25
7975
id: go
8076

8177
- name: Check out code into the Go module directory
82-
uses: actions/checkout@v2
78+
uses: actions/checkout@v4
8379

8480
- name: Get dependencies
8581
run: |

sldnSample.json

Lines changed: 30 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -110,29 +110,36 @@
110110
"typeDoc": "this is just a test datatype"
111111
},
112112
"SoftLayer_Inherit": {
113-
"base": "SoftLayer_Account",
114-
"name": "SoftLayer_Test_Service",
115-
"serviceDoc": "This is just a test service",
116-
"typeDoc": "this is just a test datatype",
117-
"methods": {
118-
"test1": {
119-
"docOverview": "A test Method",
120-
"name": "test1",
121-
"type": "SoftLayer_Inherit",
122-
"parameters": [
123-
{"name": "param1", "type": "string"},
124-
{"name": "param2", "type": "int"}
125-
]
126-
}
127-
},
128-
"properties": {
129-
"p_test1": {
130-
"doc": "a test property",
131-
"form": "relational",
132-
"typeArray": true,
133-
"name": "p_test1"
134-
}
135-
}
113+
"base": "SoftLayer_Account",
114+
"name": "SoftLayer_Inherit",
115+
"serviceDoc": "This is just a test service",
116+
"typeDoc": "this is just a test datatype",
117+
"methods": {
118+
"test1": {
119+
"docOverview": "A test Method",
120+
"name": "test1",
121+
"type": "SoftLayer_Inherit",
122+
"parameters": [
123+
{"name": "param1", "type": "string"},
124+
{"name": "param2", "type": "int"}
125+
]
126+
}
127+
},
128+
"properties": {
129+
"property1": {
130+
"doc": "The quantity of the item being ordered",
131+
"form": "local",
132+
"name": "quantity",
133+
"type": "int"
134+
},
135+
"ptest1": {
136+
"doc": "a test property",
137+
"form": "relational",
138+
"typeArray": true,
139+
"name": "p_test1",
140+
"type": "SoftLayer_Inherit"
141+
}
142+
}
136143
},
137144
"SoftLayer_Container_Product_Order": {
138145
"base": "SoftLayer_Entity",

0 commit comments

Comments
 (0)