Skip to content

Commit acdf0fc

Browse files
committed
fix: separated pipeline jobs for more control over the used SDK
1 parent 61748eb commit acdf0fc

File tree

3 files changed

+15
-12
lines changed

3 files changed

+15
-12
lines changed

.github/workflows/ci.yaml

Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,20 +17,27 @@ jobs:
1717
uses: actions/setup-go@v5
1818
with:
1919
go-version: ${{ matrix.go-version }}
20+
- name: Test
21+
run: make test
22+
23+
lint:
24+
name: Linting
25+
strategy:
26+
matrix:
27+
os: [ubuntu-latest, macos-latest]
28+
go-version: ["1.20", "1.21", "1.22", "1.23"]
29+
runs-on: ${{ matrix.os }}
30+
steps:
31+
- name: Install Go ${{ matrix.go-version }}
32+
uses: actions/setup-go@v5
33+
with:
34+
go-version: 1.21
2035
- name: Install project tools and dependencies
21-
if: ${{ matrix.go-version == '1.23' }}
2236
run: make project-tools
2337
- name: Lint
24-
if: ${{ matrix.go-version == '1.23' }}
2538
run: |
2639
make lint
2740
scripts/check-sync-tidy.sh
2841
- name: Lint scripts
29-
if: ${{ matrix.go-version == '1.23' }}
3042
run: |
3143
make lint-scripts
32-
- name: Test
33-
run: make test
34-
- name: Test scripts
35-
if: ${{ matrix.go-version >= '1.22' }}
36-
run: make test-scripts

go.work

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
go 1.21
22

3-
toolchain go1.23.6
4-
53
use (
64
./core
75
./examples/authentication

scripts/go.mod

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@ module github.com/stackitcloud/stackit-sdk-go/scripts
22

33
go 1.21
44

5-
toolchain go1.23.6
6-
75
require (
86
github.com/go-git/go-git/v5 v5.12.0
97
github.com/stackitcloud/stackit-sdk-go/core v0.15.1

0 commit comments

Comments
 (0)