mirror of
https://github.com/diamondburned/arikawa.git
synced 2025-11-28 23:36:43 +00:00
*: Enable verbose test on debug mode
This commit is contained in:
parent
ba08c57156
commit
30c2f9e5de
9
.github/workflows/test.yml
vendored
9
.github/workflows/test.yml
vendored
|
|
@ -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 }}
|
||||
|
|
|
|||
Loading…
Reference in a new issue