Skip to content

Commit

Permalink
*: Fix messed up GitHub Actions checks
Browse files Browse the repository at this point in the history
I'm so tired of this. Oh my fucking god.
  • Loading branch information
diamondburned committed Nov 4, 2023
1 parent 30c2f9e commit ff74f27
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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
Expand All @@ -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 }}
Expand Down

0 comments on commit ff74f27

Please sign in to comment.