diff --git a/.gitea/workflows/pipeline.yml b/.gitea/workflows/pipeline.yml index d15484b8..3735ce52 100644 --- a/.gitea/workflows/pipeline.yml +++ b/.gitea/workflows/pipeline.yml @@ -5,8 +5,8 @@ on: - master - v3 jobs: - setup: - name: setup + lint: + name: lint runs-on: ubuntu-latest steps: - name: setup-go @@ -17,11 +17,6 @@ jobs: uses: actions/checkout@v3 - name: deps run: go get -v -d ./... - lint: - name: lint - runs-on: ubuntu-latest - needs: setup - steps: - name: lint uses: https://github.com/golangci/golangci-lint-action@v6 with: @@ -29,14 +24,16 @@ jobs: test: name: test runs-on: ubuntu-latest - # needs: setup steps: + - name: setup-go + uses: actions/setup-go@v5 + with: + go-version: 'stable' + - name: checkout + uses: actions/checkout@v3 + - name: deps + run: go get -v -d ./... - name: test env: INTEGRATION_TESTS: yes run: go test -mod readonly -v ./... - with: - checkout: actions/checkout@v3 - deps: go get -v -d ./... - setup-go: actions/setup-go@v5 - go-version: 'stable' diff --git a/service_test.go b/service_test.go index 270330da..b6bca118 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) } }