diff --git a/.github/workflows/golangci-lint.yml b/.github/workflows/golangci-lint.yml index e667a4366..8e9f95930 100644 --- a/.github/workflows/golangci-lint.yml +++ b/.github/workflows/golangci-lint.yml @@ -20,23 +20,9 @@ jobs: - name: golangci-lint uses: golangci/golangci-lint-action@v3 with: - # Optional: version of golangci-lint to use in form of v1.2 or v1.2.3 or `latest` to use the latest version version: v${{ steps.tool-versions.outputs.golangci-lint_version }} - - # Optional: working directory, useful for monorepos - # working-directory: somedir - - # Optional: golangci-lint command line arguments. args: --enable=gofmt --tests=false --exclude-use-default --timeout=5m0s - - # Optional: show only new issues if it's a pull request. The default value is `false`. only-new-issues: true - - # Optional: if set to true then the action don't cache or restore ~/go/pkg. - # skip-pkg-cache: true - - # Optional: if set to true then the action don't cache or restore ~/.cache/go-build. - # skip-build-cache: true - name: Store lint report artifact if: always() uses: actions/upload-artifact@3cea5372237819ed00197afe530f5a7ea3e805c8 # v3.1.0 diff --git a/.github/workflows/relay.yml b/.github/workflows/relay.yml index 72be3efa8..950cee13d 100644 --- a/.github/workflows/relay.yml +++ b/.github/workflows/relay.yml @@ -25,9 +25,9 @@ jobs: - name: Build run: go build -v ./pkg/... - name: Test - run: go test ./pkg/... -v -tags integration + run: go test ./pkg/... -v -tags integration -covermode=atomic -coverpkg=./... -coverprofile=integration_coverage.txt - name: Test with the race detector enabled - run: go test ./pkg/... -v -race -count=10 -timeout=15m + run: go test ./pkg/... -v -race -count=10 -timeout=15m -covermode=atomic -coverpkg=./... -coverprofile=coverage.txt - name: Upload Go test results if: always() uses: actions/upload-artifact@v3 @@ -36,4 +36,4 @@ jobs: path: | ./output.txt ./coverage.txt - ./race_coverage.txt \ No newline at end of file + ./integration_coverage.txt \ No newline at end of file diff --git a/sonar-project.properties b/sonar-project.properties index 60246f6de..d1cab62b6 100644 --- a/sonar-project.properties +++ b/sonar-project.properties @@ -9,5 +9,4 @@ sonar.coverage.exclusions=**/*.test.ts, **/*_test.go, **/contracts/tests/**/*, * # Tests' root folder, inclusions (tests to check and count) and exclusions sonar.tests=. -sonar.test.inclusions=**/*_test.go, **/contracts/tests/**/* -sonar.test.exclusions=**/integration-tests/* \ No newline at end of file +sonar.test.inclusions=**/*_test.go, **/contracts/tests/**/*, **/integration-tests/*, **/gauntlet/* \ No newline at end of file