From 30c2f9e5de538ed8c301cbbb4c662a871ec4c133 Mon Sep 17 00:00:00 2001 From: diamondburned Date: Sat, 4 Nov 2023 02:55:33 -0700 Subject: [PATCH] *: Enable verbose test on debug mode --- .github/workflows/test.yml | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 523bb11..8092516 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -53,9 +53,6 @@ jobs: - name: Build run: go build ./... - - name: Run Unit Tests - run: go test ./... - unit-test: name: Unit Test runs-on: ubuntu-latest @@ -67,7 +64,9 @@ jobs: uses: diamondburned/cache-install@main - name: Test - run: go test ./... + run: go test $TEST_FLAGS ./... + env: + TEST_FLAGS: -verbose=${{ runner.debug }} integration-test: name: Integration Test @@ -85,7 +84,7 @@ jobs: go test -coverprofile /tmp/coverage.out -race $TEST_FLAGS ./... go tool cover -func /tmp/coverage.out env: - TEST_FLAGS: -short=${{ github.event.inputs.short-integration-test }} + TEST_FLAGS: -verbose=${{ runner.debug }} -short=${{ github.event.inputs.short-integration-test }} CHANNEL_ID: ${{ secrets.CHANNEL_ID }} GUILD_ID: ${{ secrets.GUILD_ID }} VOICE_ID: ${{ secrets.VOICE_ID }}