From d04314b472083ef63686fb117bb077d88e953740 Mon Sep 17 00:00:00 2001 From: Aleksandr Tolstikhin Date: Thu, 5 Dec 2024 23:55:31 +0700 Subject: [PATCH] Test actions --- .gitea/workflows/lint.yml | 8 +++----- .gitea/workflows/pr.yml | 8 +++++--- service_test.go | 2 +- store/store.go | 4 +++- 4 files changed, 12 insertions(+), 10 deletions(-) diff --git a/.gitea/workflows/lint.yml b/.gitea/workflows/lint.yml index 1cc293dc..c2b17575 100644 --- a/.gitea/workflows/lint.yml +++ b/.gitea/workflows/lint.yml @@ -10,15 +10,13 @@ jobs: runs-on: ubuntu-latest steps: - name: setup-go - uses: actions/setup-go@v3 - with: - go-version: 1.21 + uses: actions/setup-go@v5 - name: checkout uses: actions/checkout@v3 - name: deps run: go get -v -d ./... - name: lint - uses: https://github.com/golangci/golangci-lint-action@v3.4.0 + uses: https://github.com/golangci/golangci-lint-action@v6 continue-on-error: true with: - version: v1.52 + version: v1.58 diff --git a/.gitea/workflows/pr.yml b/.gitea/workflows/pr.yml index b3e67b06..e03fd52c 100644 --- a/.gitea/workflows/pr.yml +++ b/.gitea/workflows/pr.yml @@ -12,11 +12,13 @@ jobs: - name: checkout uses: actions/checkout@v3 - name: setup-go - uses: actions/setup-go@v3 - with: - go-version: 1.21 + uses: actions/setup-go@v5 - name: deps run: go get -v -t -d ./... + - name: lint + uses: https://github.com/golangci/golangci-lint-action@v6 + with: + version: v1.58 - name: test env: INTEGRATION_TESTS: yes diff --git a/service_test.go b/service_test.go index b6bca118..270330da 100644 --- a/service_test.go +++ b/service_test.go @@ -28,7 +28,7 @@ func TestClient(t *testing.T) { } x1 := svc.Client("test2") - if x1.Name() != "test2" { + if x1.Name() == "test2" { t.Fatalf("invalid client %#+v", svc.Options().Clients) } } diff --git a/store/store.go b/store/store.go index db69f9f6..5caa6c1f 100644 --- a/store/store.go +++ b/store/store.go @@ -62,4 +62,6 @@ type Watcher interface { Stop() } -func Watch(context.Context) (Watcher, error) +func Watch(context.Context) (Watcher, error) { + return nil, nil +}