Skip to content
This repository was archived by the owner on Jun 17, 2023. It is now read-only.

Commit c1b923e

Browse files
committed
Fix (?) build info
1 parent 07e1778 commit c1b923e

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

.github/workflows/goreleaser.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ jobs:
1717
go-version: 1.16
1818
- name: Set build info
1919
run: |
20-
echo "USER=${whoami}" >> $GITHUB_ENV
21-
echo "HOST=${hostname}" >> $GITHUB_ENV
20+
echo "USER=$(whoami)" >> $GITHUB_ENV
21+
echo "HOST=$(hostname)" >> $GITHUB_ENV
2222
- name: Run GoReleaser
2323
uses: goreleaser/goreleaser-action@v2
2424
with:

.github/workflows/tests.yml

+7-1
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,14 @@ jobs:
3232
with:
3333
go-version: ${{ matrix.go-version }}
3434
- name: Test (on Ubuntu)
35-
run: go test -coverprofile=coverage.txt -covermode=atomic ./...
35+
run: |
36+
sleep 30
37+
go test -coverprofile=coverage.txt -covermode=atomic ./...
3638
if: runner.os == 'Linux'
39+
- name: Show container logs on failure
40+
run: docker-compose -f testdata/docker/docker-compose.yml logs
41+
if: ${{ runner.os == 'Linux' && failure() }}
42+
continue-on-error: true
3743
- name: Test (on macOS)
3844
run: go test -short -coverprofile=coverage.txt -covermode=atomic ./...
3945
if: runner.os == 'macOS'

0 commit comments

Comments
 (0)