Skip to content

fix: ...

fix: ... #90

Workflow file for this run

name: OpenAiClient Test
on:
push:
paths-ignore:
- '**/*.md'
pull_request:
paths-ignore:
- '**/*.md'
jobs:
check:
environment: OPENAI
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup JDK 11
uses: actions/setup-java@v3
with:
distribution: 'adopt'
java-version: '11'
- name: chmod -R 777 *
run: chmod -R 777 *
- name: Init gradle project
run: ./gradlew clean --scan
- name: Assemble
run: ./gradlew assemble --scan
- name: OpenAiClientTest
run: ./gradlew test --tests "xyz.cssxsh.openai.OpenAiClientTest" --scan --info
env:
OPENAI_TOKEN: ${{ secrets.OPENAI_TOKEN }}
- name: MiraiOpenAiListenerTest
run: ./gradlew test --tests "xyz.cssxsh.mirai.openai.MiraiOpenAiListenerTest" --scan --info
env:
OPENAI_TOKEN: ${{ secrets.OPENAI_TOKEN }}
- name: BuildPlugin
run: ./gradlew buildPlugin
- name: Upload
uses: actions/upload-artifact@v3
with:
name: build
path: build/mirai/*