From c1b923e9a678ebb2842024052e4516299aef0d87 Mon Sep 17 00:00:00 2001 From: Sergey Makinen Date: Tue, 10 Aug 2021 01:18:24 +0300 Subject: [PATCH] Fix (?) build info --- .github/workflows/goreleaser.yml | 4 ++-- .github/workflows/tests.yml | 8 +++++++- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/.github/workflows/goreleaser.yml b/.github/workflows/goreleaser.yml index a48e8b3..b183a15 100644 --- a/.github/workflows/goreleaser.yml +++ b/.github/workflows/goreleaser.yml @@ -17,8 +17,8 @@ jobs: go-version: 1.16 - name: Set build info run: | - echo "USER=${whoami}" >> $GITHUB_ENV - echo "HOST=${hostname}" >> $GITHUB_ENV + echo "USER=$(whoami)" >> $GITHUB_ENV + echo "HOST=$(hostname)" >> $GITHUB_ENV - name: Run GoReleaser uses: goreleaser/goreleaser-action@v2 with: diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 15161b8..1ed0445 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -32,8 +32,14 @@ jobs: with: go-version: ${{ matrix.go-version }} - name: Test (on Ubuntu) - run: go test -coverprofile=coverage.txt -covermode=atomic ./... + run: | + sleep 30 + go test -coverprofile=coverage.txt -covermode=atomic ./... if: runner.os == 'Linux' + - name: Show container logs on failure + run: docker-compose -f testdata/docker/docker-compose.yml logs + if: ${{ runner.os == 'Linux' && failure() }} + continue-on-error: true - name: Test (on macOS) run: go test -short -coverprofile=coverage.txt -covermode=atomic ./... if: runner.os == 'macOS'