1
0
Fork 0
mirror of https://github.com/diamondburned/arikawa.git synced 2024-10-31 20:14:21 +00:00

*: Fix messed up GitHub Actions checks

I'm so tired of this. Oh my fucking god.
This commit is contained in:
diamondburned 2023-11-04 03:01:22 -07:00
parent 30c2f9e5de
commit ff74f27e7f
No known key found for this signature in database
GPG key ID: D78C4471CE776659

View file

@ -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 }}