Skip to content

Commit 4f62ff2

Browse files
authored
Merge pull request #47 from stackitcloud/bugfix/fix-testing-pipeline
ci: update testing pipeline and improve setup steps
2 parents 048aee5 + 97e62ad commit 4f62ff2

File tree

1 file changed

+6
-27
lines changed

1 file changed

+6
-27
lines changed

.github/workflows/main.yml

Lines changed: 6 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -16,37 +16,16 @@ on:
1616

1717
jobs:
1818
test:
19-
strategy:
20-
matrix:
21-
go-version: [1.23.x]
22-
os: [ubuntu-latest]
23-
runs-on: ${{ matrix.os }}
19+
runs-on: ubuntu-latest
2420

2521
steps:
26-
- name: Install Go
27-
uses: actions/setup-go@v4
28-
with:
29-
go-version: ${{ matrix.go-version }}
30-
3122
- name: Checkout code
32-
uses: actions/checkout@v3
23+
uses: actions/checkout@v4
3324

34-
# cache go modules
35-
- uses: actions/cache@v3
25+
- name: Install Go
26+
uses: actions/setup-go@v5
3627
with:
37-
# In order:
38-
# * Module download cache
39-
# * Build cache (Linux)
40-
# * Build cache (Mac)
41-
# * Build cache (Windows)
42-
path: |
43-
~/go/pkg/mod
44-
~/.cache/go-build
45-
~/Library/Caches/go-build
46-
%LocalAppData%\go-build
47-
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
48-
restore-keys: |
49-
${{ runner.os }}-go-
28+
go-version-file: go.mod
5029

5130
- name: Downloads the dependencies
5231
run: make download
@@ -55,4 +34,4 @@ jobs:
5534
run: make lint
5635

5736
- name: Runs all tests
58-
run: make test
37+
run: make test

0 commit comments

Comments
 (0)