From e5bc8baf1c7416661adf1bbe6b22489f8cada1a9 Mon Sep 17 00:00:00 2001 From: Vitaly Isaev Date: Fri, 12 Jan 2024 16:03:47 +0300 Subject: [PATCH] Fix CI pipelines (#30) --- .github/workflows/build.yml | 4 ++-- .github/workflows/release.yml | 3 ++- codecov.yml | 3 +++ 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 1e603047..eff07208 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -42,8 +42,8 @@ jobs: ./fq-connector-go-tests -projectPath=$(pwd) -test.coverprofile=coverage_integration_tests.out - name: Union coverage run: | - cat coverage_unit_tests.out | grep -v pb.go | grep -v tests > coverage.out - cat coverage_integration_tests.out | grep -v pb.go | grep -v tests | grep -v 'mode: atomic' >> coverage.out + cat coverage_unit_tests.out > coverage.out + cat coverage_integration_tests.out | grep -v 'mode: atomic' >> coverage.out go tool cover -func=coverage.out rm coverage_unit_tests.out coverage_integration_tests.out - name: Upload coverage to Codecov diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 7a0a9f41..bc44a3e4 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -52,8 +52,9 @@ jobs: - name: Run integration tests run: | # give datasources some time to initialize + sleep 3 go test -c -o fq-connector-go-tests ./tests - ./fq-connector-go-tests + ./fq-connector-go-tests -projectPath=$(pwd) - name: Build and push Docker image run: | docker login --username vitalyisaev2 --password ${{ secrets.GHCR_TOKEN }} ghcr.io diff --git a/codecov.yml b/codecov.yml index a4f1d317..f989ae97 100644 --- a/codecov.yml +++ b/codecov.yml @@ -1,4 +1,7 @@ ignore: - "api" + - "app/config" - "library" - "*_mock.go" + - "*_test.go" + - "tests"