Selaa lähdekoodia

update ci configuration

kevin 4 vuotta sitten
vanhempi
sitoutus
fe2252184a
2 muutettua tiedostoa jossa 1 lisäystä ja 37 poistoa
  1. 1 1
      .github/workflows/go.yml
  2. 0 36
      .golangci.yml

+ 1 - 1
.github/workflows/go.yml

@@ -27,7 +27,7 @@ jobs:
         go get -v -t -d ./...
 
     - name: Test
-      run: go test -race -coverprofile=coverage.txt -covermode=atomic ./...
+      run: go test -race -coverprofile=coverage.txt -covermode=atomic ./... | grep -v "[no test files]"
 
     - name: Codecov
       uses: codecov/codecov-action@v1.0.6

+ 0 - 36
.golangci.yml

@@ -1,36 +0,0 @@
-run:
-  #  concurrency: 6
-  timeout: 5m
-  skip-dirs:
-    - core
-    - doc
-    - example
-    - rest
-    - rpcx
-    - tools
-
-
-linters:
-  disable-all: true
-  enable:
-    - bodyclose
-    - deadcode
-    - errcheck
-    - gosimple
-    - govet
-    - ineffassign
-    - staticcheck
-    - structcheck
-    - typecheck
-    - unused
-    - varcheck
-#    - dupl
-
-
-linters-settings:
-
-issues:
-  exclude-rules:
-    - linters:
-        - staticcheck
-      text: 'SA1019: (baseresponse.BoolResponse|oldresponse.FormatBadRequestResponse|oldresponse.FormatResponse)|SA5008: unknown JSON option ("optional"|"default=|"range=|"options=)'