|
6 | 6 | - master |
7 | 7 | - releases/** |
8 | 8 | paths-ignore: |
9 | | - - 'README.md' |
| 9 | + - "README.md" |
10 | 10 | pull_request: |
11 | 11 | branches: |
12 | 12 | - master |
13 | 13 | - releases/** |
14 | 14 | paths-ignore: |
15 | | - - 'README.md' |
| 15 | + - "README.md" |
16 | 16 |
|
17 | 17 | env: |
18 | 18 | CROWDSEC_FEATURE_DISABLE_HTTP_RETRY_BACKOFF: true |
19 | 19 |
|
20 | 20 | jobs: |
21 | 21 | build: |
22 | 22 | name: "Build + tests" |
23 | | - runs-on: windows-2022 |
| 23 | + runs-on: windows-2025 |
24 | 24 |
|
25 | 25 | steps: |
26 | | - |
27 | | - - name: Check out CrowdSec repository |
28 | | - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 |
29 | | - with: |
30 | | - fetch-depth: 0 |
31 | | - submodules: false |
32 | | - |
33 | | - - name: "Set up Go" |
34 | | - uses: actions/setup-go@7a3fe6cf4cb3a834922a1244abfce67bcef6a0c5 # v6.2.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: | |
44 | 43 | .github/generate-codecov-yml.sh >> .github/codecov.yml |
45 | 44 |
|
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.8 |
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