Skip to content

Commit 13499e1

Browse files
author
Niklas Burchhardt
committed
update & fix CI action
- updated version to 1.26.x - setup-go@v6 has automated caching enabled by default, but needs the go.mod in order to do so, therefore switched checkout and go setup steps. [link to setup-go docs](https://github.com/actions/setup-go?tab=readme-ov-file#caching-dependency-files-and-build-outputs)
1 parent 155a041 commit 13499e1

1 file changed

Lines changed: 5 additions & 23 deletions

File tree

.github/workflows/main.yml

Lines changed: 5 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
---
21
# based on https://github.com/mvdan/github-actions-golang
32
name: CI
43

@@ -18,36 +17,19 @@ jobs:
1817
test:
1918
strategy:
2019
matrix:
21-
go-version: [1.25.x]
20+
go-version: ["1.26.x"]
2221
os: [ubuntu-latest]
2322
runs-on: ${{ matrix.os }}
2423

2524
steps:
25+
- name: Checkout code
26+
uses: actions/checkout@v4
27+
2628
- name: Install Go
2729
uses: actions/setup-go@v6
2830
with:
2931
go-version: ${{ matrix.go-version }}
3032

31-
- name: Checkout code
32-
uses: actions/checkout@v6
33-
34-
# cache go modules
35-
- uses: actions/cache@v5
36-
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-
50-
5133
- name: Downloads the dependencies
5234
run: make download
5335

@@ -64,4 +46,4 @@ jobs:
6446
config: .github/ct.yaml
6547

6648
- name: Runs helm docs
67-
run: make helm-docs
49+
run: make helm-docs

0 commit comments

Comments
 (0)