1
0
Fork 0
mirror of https://github.com/diamondburned/arikawa.git synced 2024-11-01 04:24:19 +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: on:
push: push:
pull_request: pull_request:
workflow_dispatch:
inputs:
short-integration-test:
description: 'Run only the short integration tests'
required: false
default: true
type: boolean
jobs: jobs:
nix-env: nix-env:
@ -75,13 +82,14 @@ jobs:
- name: Test - name: Test
run: | run: |
go test -coverprofile /tmp/coverage.out -race ./... 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:
BOT_TOKEN: ${{ secrets.BOT_TOKEN }} TEST_FLAGS: -short=${{ github.event.inputs.short-integration-test }}
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 }}
BOT_TOKEN: ${{ secrets.BOT_TOKEN }}
- name: Upload coverage profile - name: Upload coverage profile
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v3