Skip to content

Commit 443b1ef

Browse files
committed
fix workflows
1 parent e486552 commit 443b1ef

File tree

4 files changed

+30
-20
lines changed

4 files changed

+30
-20
lines changed

.github/workflows/build.yml

+15-15
Original file line numberDiff line numberDiff line change
@@ -9,18 +9,18 @@ on:
99
- main
1010
- master
1111
jobs:
12-
test:
13-
runs-on: ubuntu-latest
14-
steps:
15-
- uses: actions/checkout@v4
16-
- uses: actions/setup-go@v5
17-
with:
18-
go-version: stable
19-
- name: Install dependencies
20-
run: go mod tidy
21-
- name: Run tests with coverage
22-
run: go test ./... -coverprofile=./cover.out -covermode=atomic -coverpkg=./...
23-
- name: Check coverage
24-
uses: vladopajic/go-test-coverage@v2
25-
with:
26-
config: ./.testcoverage.yml
12+
test:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v4
16+
- uses: actions/setup-go@v5
17+
with:
18+
go-version: stable
19+
- name: Install dependencies
20+
run: go mod tidy
21+
- name: Run tests with coverage
22+
run: go test ./... -coverprofile=./cover.out -covermode=atomic -coverpkg=./...
23+
- name: Check coverage
24+
uses: vladopajic/go-test-coverage@v2
25+
with:
26+
config: ./.testcoverage.yml

go.mod

-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
11
module github.com/redis-developer/go-redis-entraid
22

33
go 1.18
4-
5-

version.go

+4-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1-
package redis-entraid
1+
package redis
2+
3+
const version = "0.0.1"
24

35
// Version is the current release version.
46
func Version() string {
5-
return "0.0.1"
7+
return version
68
}
7-

version_test.go

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
package redis
2+
3+
import (
4+
"testing"
5+
)
6+
7+
func TestVersion(t *testing.T) {
8+
if Version() != version {
9+
t.Errorf("Version() = %s; want %s", Version(), version)
10+
}
11+
}

0 commit comments

Comments
 (0)