Skip to content

Commit 598c5f2

Browse files
authored
ci: restructure job groups (#1088)
1 parent 441e0b5 commit 598c5f2

2 files changed

Lines changed: 24 additions & 22 deletions

File tree

Lines changed: 1 addition & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
name: CI
2+
name: Lint
33

44
on:
55
push:
@@ -60,22 +60,3 @@ jobs:
6060
pre-commit-golangci-lint|
6161
6262
- uses: pre-commit/action@v3.0.1
63-
64-
test:
65-
name: Unit Tests
66-
runs-on: ubuntu-latest
67-
steps:
68-
- uses: actions/checkout@v6
69-
- uses: actions/setup-go@v6
70-
with:
71-
go-version-file: go.mod
72-
73-
- run: go test -v -race -coverprofile=coverage.txt ./...
74-
75-
- uses: codecov/codecov-action@v5
76-
if: >
77-
!startsWith(github.head_ref, 'renovate/') &&
78-
!startsWith(github.head_ref, 'releaser-pleaser--')
79-
with:
80-
token: ${{ secrets.CODECOV_TOKEN }}
81-
flags: unit
Lines changed: 23 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,31 @@
1-
name: e2e tests
1+
---
2+
name: Tests
23
on:
34
pull_request: {}
45
push:
56
branches: [main]
67
jobs:
8+
unit:
9+
name: unit
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v6
13+
- uses: actions/setup-go@v6
14+
with:
15+
go-version-file: go.mod
16+
17+
- run: go test -v -race -coverprofile=coverage.txt ./...
18+
19+
- uses: codecov/codecov-action@v5
20+
if: >
21+
!startsWith(github.head_ref, 'renovate/') &&
22+
!startsWith(github.head_ref, 'releaser-pleaser--')
23+
with:
24+
token: ${{ secrets.CODECOV_TOKEN }}
25+
flags: unit
26+
727
cloud:
8-
name: cloud ${{ matrix.k3s }}
28+
name: e2e k8s-${{ matrix.k3s }}
929
runs-on: ubuntu-latest
1030

1131
permissions:
@@ -134,6 +154,7 @@ jobs:
134154
path: debug-logs/
135155

136156
robot:
157+
name: e2e robot
137158
runs-on: ubuntu-latest
138159

139160
permissions:

0 commit comments

Comments
 (0)