1
0
Fork 0
mirror of https://github.com/diamondburned/arikawa.git synced 2024-11-01 04:24:19 +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: pull_request:
workflow_dispatch: workflow_dispatch:
inputs: inputs:
short-integration-test: short-integration-tests:
description: 'Run only the short integration tests' description: 'Run only short integration tests'
required: false required: false
default: true default: false
type: boolean type: boolean
jobs: jobs:
@ -66,7 +66,8 @@ jobs:
- name: Test - name: Test
run: go test $TEST_FLAGS ./... run: go test $TEST_FLAGS ./...
env: env:
TEST_FLAGS: -verbose=${{ runner.debug }} TEST_FLAGS: >-
-verbose=${{ runner.debug }}
integration-test: integration-test:
name: Integration Test name: Integration Test
@ -84,7 +85,9 @@ jobs:
go test -coverprofile /tmp/coverage.out -race $TEST_FLAGS ./... go test -coverprofile /tmp/coverage.out -race $TEST_FLAGS ./...
go tool cover -func /tmp/coverage.out go tool cover -func /tmp/coverage.out
env: 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 }} CHANNEL_ID: ${{ secrets.CHANNEL_ID }}
GUILD_ID: ${{ secrets.GUILD_ID }} GUILD_ID: ${{ secrets.GUILD_ID }}
VOICE_ID: ${{ secrets.VOICE_ID }} VOICE_ID: ${{ secrets.VOICE_ID }}