1
0
Fork 0
mirror of https://github.com/diamondburned/arikawa.git synced 2024-12-04 20:54:43 +00:00

*: Run only short integration tests in CI by default

This commit is contained in:
diamondburned 2023-11-04 02:49:39 -07:00
parent 47ce508089
commit ba08c57156
No known key found for this signature in database
GPG key ID: D78C4471CE776659

View file

@ -3,6 +3,13 @@ name: Test
on:
push:
pull_request:
workflow_dispatch:
inputs:
short-integration-test:
description: 'Run only the short integration tests'
required: false
default: true
type: boolean
jobs:
nix-env:
@ -75,13 +82,14 @@ jobs:
- name: Test
run: |
go test -coverprofile /tmp/coverage.out -race ./...
go test -coverprofile /tmp/coverage.out -race $TEST_FLAGS ./...
go tool cover -func /tmp/coverage.out
env:
BOT_TOKEN: ${{ secrets.BOT_TOKEN }}
TEST_FLAGS: -short=${{ github.event.inputs.short-integration-test }}
CHANNEL_ID: ${{ secrets.CHANNEL_ID }}
GUILD_ID: ${{ secrets.GUILD_ID }}
VOICE_ID: ${{ secrets.VOICE_ID }}
BOT_TOKEN: ${{ secrets.BOT_TOKEN }}
- name: Upload coverage profile
uses: actions/upload-artifact@v3