Skip to content

Commit e7fc696

Browse files
committed
separate build/test and linting steps
1 parent 6881c67 commit e7fc696

File tree

1 file changed

+35
-5
lines changed

1 file changed

+35
-5
lines changed

.github/workflows/ci.yaml

Lines changed: 35 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
strategy:
1313
matrix:
1414
os: [ubuntu-latest, macos-latest]
15-
go-version: ["1.21", "1.22"]
15+
go-version: ["1.21", "1.22", "1.23"]
1616
runs-on: ${{ matrix.os }}
1717
steps:
1818
- name: Install SSH Key
@@ -37,13 +37,43 @@ jobs:
3737
uses: actions/setup-go@v5
3838
with:
3939
go-version: ${{ matrix.go-version }}
40-
- name: Lint
41-
if: ${{ matrix.go-version == '1.21' || matrix.go-version == '1.22' || matrix.go-version == '1.23'}}
42-
working-directory: ./sdk-repo-updated
43-
run: make lint skip-non-generated-files=true
4440
- name: Test
4541
working-directory: ./sdk-repo-updated
4642
run: make test skip-non-generated-files=true
43+
44+
lint-go:
45+
name: CI [Go]
46+
strategy:
47+
matrix:
48+
os: [ubuntu-latest, macos-latest]
49+
runs-on: ${{ matrix.os }}
50+
steps:
51+
- name: Install SSH Key
52+
uses: shimataro/ssh-key-action@v2
53+
with:
54+
key: ${{ secrets.SSH_PRIVATE_KEY }}
55+
known_hosts: ${{ vars.SSH_KNOWN_HOSTS }}
56+
- name: Install Java
57+
uses: actions/setup-java@v4
58+
with:
59+
distribution: "temurin"
60+
java-version: ${{ env.JAVA_VERSION }}
61+
- name: Checkout
62+
uses: actions/checkout@v4
63+
- name: Build
64+
uses: ./.github/actions/build/go
65+
with:
66+
go-version: ${{ env.GO_VERSION_BUILD }}
67+
- name: Generate SDK
68+
uses: ./.github/actions/generate-sdk/go
69+
- name: Install Go ${{ env.GO_VERSION_BUILD }}
70+
uses: actions/setup-go@v5
71+
with:
72+
go-version: ${{ env.GO_VERSION_BUILD }}
73+
- name: Lint
74+
working-directory: ./sdk-repo-updated
75+
run: make lint skip-non-generated-files=true
76+
4777
main-python:
4878
name: CI [Python]
4979
strategy:

0 commit comments

Comments
 (0)