From ff74f27e7f0c7472ccaff2d297ec6a1919722a8a Mon Sep 17 00:00:00 2001 From: diamondburned Date: Sat, 4 Nov 2023 03:01:22 -0700 Subject: [PATCH] *: Fix messed up GitHub Actions checks I'm so tired of this. Oh my fucking god. --- .github/workflows/test.yml | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 8092516..121607b 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -5,10 +5,10 @@ on: pull_request: workflow_dispatch: inputs: - short-integration-test: - description: 'Run only the short integration tests' + short-integration-tests: + description: 'Run only short integration tests' required: false - default: true + default: false type: boolean jobs: @@ -66,7 +66,8 @@ jobs: - name: Test run: go test $TEST_FLAGS ./... env: - TEST_FLAGS: -verbose=${{ runner.debug }} + TEST_FLAGS: >- + -verbose=${{ runner.debug }} integration-test: name: Integration Test @@ -84,7 +85,9 @@ jobs: go test -coverprofile /tmp/coverage.out -race $TEST_FLAGS ./... go tool cover -func /tmp/coverage.out env: - TEST_FLAGS: -verbose=${{ runner.debug }} -short=${{ github.event.inputs.short-integration-test }} + TEST_FLAGS: >- + -verbose=${{ runner.debug }} + -short=${{ github.event-name == "workflow_dispatch" || github.event.inputs.short-integration-tests == 'true' }} CHANNEL_ID: ${{ secrets.CHANNEL_ID }} GUILD_ID: ${{ secrets.GUILD_ID }} VOICE_ID: ${{ secrets.VOICE_ID }}