Bringing things to order in workflows/ #363
@ -5,8 +5,8 @@ on:
|
|||||||
- master
|
- master
|
||||||
- v3
|
- v3
|
||||||
jobs:
|
jobs:
|
||||||
setup:
|
lint:
|
||||||
name: setup
|
name: lint
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: setup-go
|
- name: setup-go
|
||||||
@ -17,11 +17,6 @@ jobs:
|
|||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
- name: deps
|
- name: deps
|
||||||
run: go get -v -d ./...
|
run: go get -v -d ./...
|
||||||
lint:
|
|
||||||
name: lint
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
needs: setup
|
|
||||||
steps:
|
|
||||||
- name: lint
|
- name: lint
|
||||||
uses: https://github.com/golangci/golangci-lint-action@v6
|
uses: https://github.com/golangci/golangci-lint-action@v6
|
||||||
with:
|
with:
|
||||||
@ -29,14 +24,16 @@ jobs:
|
|||||||
test:
|
test:
|
||||||
name: test
|
name: test
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
# needs: setup
|
|
||||||
steps:
|
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
|
- name: test
|
||||||
env:
|
env:
|
||||||
INTEGRATION_TESTS: yes
|
INTEGRATION_TESTS: yes
|
||||||
run: go test -mod readonly -v ./...
|
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'
|
|
||||||
|
@ -28,7 +28,7 @@ func TestClient(t *testing.T) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
x1 := svc.Client("test2")
|
x1 := svc.Client("test2")
|
||||||
if x1.Name() == "test2" {
|
if x1.Name() != "test2" {
|
||||||
t.Fatalf("invalid client %#+v", svc.Options().Clients)
|
t.Fatalf("invalid client %#+v", svc.Options().Clients)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user