Skip to content

Commit 57be963

Browse files
authored
Create test.yml
1 parent ff4c80b commit 57be963

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

.github/workflows/test.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
on:
2+
push:
3+
branches:
4+
- main
5+
pull_request:
6+
branches:
7+
- main
8+
9+
name: Unit-Test
10+
11+
jobs:
12+
ledis-unit-test:
13+
strategy:
14+
matrix:
15+
go-version: [1.23.x]
16+
os: [ubuntu-latest]
17+
arch: [amd64, arm64, armv5, armv6, armv7]
18+
runs-on: ${{ matrix.os }}
19+
steps:
20+
- name: Checkout code
21+
uses: actions/checkout@v3
22+
23+
- name: Set up Go
24+
uses: actions/setup-go@v3
25+
with:
26+
go-version: ${{ matrix.go-version }}
27+
28+
- name: Run unit tests
29+
run: |
30+
cd ledis
31+
go test ./...

0 commit comments

Comments
 (0)