From 197eb0c9a0b271dab7b4c3db9ada8d0a24cd67fb Mon Sep 17 00:00:00 2001 From: Smolevich Date: Wed, 1 Apr 2020 12:20:53 +0300 Subject: [PATCH] Change ci-test-backend.yml --- .github/workflows/ci-test-backend.yml | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/.github/workflows/ci-test-backend.yml b/.github/workflows/ci-test-backend.yml index 04d0aef8..cab52232 100644 --- a/.github/workflows/ci-test-backend.yml +++ b/.github/workflows/ci-test-backend.yml @@ -8,13 +8,11 @@ on: - '.github/workflows/ci-test-backend.yml' - 'backend/**' - '!backend/scripts/**' - - '.golangci.yml' pull_request: paths: - '.github/workflows/ci-test-backend.yml' - 'backend/**' - '!backend/scripts/**' - - '.golangci.yml' jobs: backend: @@ -24,11 +22,7 @@ jobs: - uses: actions/checkout@v2 - name: debug if needed - run: | - export DEBUG=${DEBUG:-false} - if [[ "$DEBUG" == "true" ]]; then - env - fi + run: if [[ "$DEBUG" == "true" ]]; then docker version && env; fi env: DEBUG: ${{secrets.DEBUG}} @@ -39,13 +33,14 @@ jobs: - name: test backend run: | - export TZ="America/Chicago" date cd backend/app go test -mod=vendor -timeout=60s -covermode=count -coverprofile=$GITHUB_WORKSPACE/profile.cov_tmp ./... cat $GITHUB_WORKSPACE/profile.cov_tmp | grep -v "_mock.go" > $GITHUB_WORKSPACE/profile.cov cd ../_example/memory_store go test -race ./... + env: + TZ: "America/Chicago" - name: install golangci-lint and goveralls run: |