Skip to content

Commit e614e26

Browse files
committed
ci: add test/unit and test/all-done
Signed-off-by: Kir Kolyshkin <[email protected]>
1 parent 92d17cf commit e614e26

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

.github/workflows/test.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: test
2+
on:
3+
push:
4+
tags:
5+
- v*
6+
branches:
7+
- main
8+
- release-*
9+
pull_request:
10+
permissions:
11+
contents: read
12+
13+
jobs:
14+
unit:
15+
timeout-minutes: 10
16+
strategy:
17+
fail-fast: false
18+
matrix:
19+
os: [ubuntu-24.04]
20+
go-version: [1.23.x, 1.24.x]
21+
race: ["-race", ""]
22+
runs-on: ${{ matrix.os }}
23+
24+
steps:
25+
- uses: actions/checkout@v4
26+
- uses: actions/setup-go@v5
27+
with:
28+
go-version: ${{ matrix.go-version }}
29+
- run: go test -timeout 3m ${{ matrix.race }} -v ./...
30+
31+
all-done:
32+
needs:
33+
- unit
34+
runs-on: ubuntu-24.04
35+
steps:
36+
- run: echo "All jobs completed"

0 commit comments

Comments
 (0)