Skip to content

Commit a8a75f2

Browse files
authored
CI: use windows-2025 image (#4379)
1 parent 5eda722 commit a8a75f2

1 file changed

Lines changed: 38 additions & 39 deletions

File tree

.github/workflows/go-tests-windows.yml

Lines changed: 38 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -6,58 +6,57 @@ on:
66
- master
77
- releases/**
88
paths-ignore:
9-
- 'README.md'
9+
- "README.md"
1010
pull_request:
1111
branches:
1212
- master
1313
- releases/**
1414
paths-ignore:
15-
- 'README.md'
15+
- "README.md"
1616

1717
env:
1818
CROWDSEC_FEATURE_DISABLE_HTTP_RETRY_BACKOFF: true
1919

2020
jobs:
2121
build:
2222
name: "Build + tests"
23-
runs-on: windows-2022
23+
runs-on: windows-2025
2424

2525
steps:
26-
27-
- name: Check out CrowdSec repository
28-
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
29-
with:
30-
fetch-depth: 0
31-
submodules: false
32-
33-
- name: "Set up Go"
34-
uses: actions/setup-go@4b73464bb391d4059bd26b0524d20df3927bd417 # v6.3.0
35-
with:
36-
go-version-file: go.mod
37-
38-
- name: Build
39-
run: |
40-
make build BUILD_RE2_WASM=1
41-
42-
- name: Generate codecov configuration
43-
run: |
26+
- name: Check out CrowdSec repository
27+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
28+
with:
29+
fetch-depth: 0
30+
submodules: false
31+
32+
- name: "Set up Go"
33+
uses: actions/setup-go@4b73464bb391d4059bd26b0524d20df3927bd417 # v6.3.0
34+
with:
35+
go-version-file: go.mod
36+
37+
- name: Build
38+
run: |
39+
make build BUILD_RE2_WASM=1
40+
41+
- name: Generate codecov configuration
42+
run: |
4443
.github/generate-codecov-yml.sh >> .github/codecov.yml
4544
46-
- name: Unit tests
47-
run: |
48-
go install gotest.tools/gotestsum@v1.12.3
49-
make testcover
50-
51-
- name: Upload unit coverage to Codecov
52-
uses: codecov/codecov-action@671740ac38dd9b0130fbe1cec585b89eea48d3de # v5.5.2
53-
with:
54-
files: coverage.out
55-
flags: unit-windows
56-
token: ${{ secrets.CODECOV_TOKEN }}
57-
58-
- name: golangci-lint
59-
uses: golangci/golangci-lint-action@1e7e51e771db61008b38414a730f564565cf7c20 # v9.2.0
60-
with:
61-
version: v2.10
62-
args: --issues-exit-code=1 --timeout 10m
63-
only-new-issues: false
45+
- name: Unit tests
46+
run: |
47+
go install gotest.tools/gotestsum@v1.12.3
48+
make testcover
49+
50+
- name: Upload unit coverage to Codecov
51+
uses: codecov/codecov-action@671740ac38dd9b0130fbe1cec585b89eea48d3de # v5.5.2
52+
with:
53+
files: coverage.out
54+
flags: unit-windows
55+
token: ${{ secrets.CODECOV_TOKEN }}
56+
57+
- name: golangci-lint
58+
uses: golangci/golangci-lint-action@1e7e51e771db61008b38414a730f564565cf7c20 # v9.2.0
59+
with:
60+
version: v2.10
61+
args: --issues-exit-code=1 --timeout 10m
62+
only-new-issues: false

0 commit comments

Comments
 (0)