Skip to content

Commit 2a3e090

Browse files
committed
test: add test action
Signed-off-by: james <open4pd@4paradigm.com>
1 parent f08adf8 commit 2a3e090

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

.github/workflows/go.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ on:
1414
branches: [ "master" ]
1515

1616
jobs:
17-
build:
17+
test:
1818
runs-on: ubuntu-22.04
1919
steps:
2020
- uses: actions/checkout@v4
@@ -24,6 +24,9 @@ jobs:
2424
go-version: '1.20'
2525
- name: Build
2626
run: go build -o ./k8s-device-plugin cmd/k8s-device-plugin/main.go
27+
- name: Run tests
28+
run: |
29+
go test ./... -v
2730
2831
docker_build:
2932
runs-on: ubuntu-22.04

0 commit comments

Comments
 (0)