mirror of
https://github.com/labring/FastGPT.git
synced 2026-04-18 02:06:33 +08:00
* fix: image read and json error (Agent) (#6502) * fix: 1.image read 2.JSON parsing error * dataset cite and pause * perf: plancall second parse * add test --------- Co-authored-by: archer <545436317@qq.com> * master message * remove invalid code * fix: sandbox download file * update lock * sub set * i18n * perf: system forbid sandbox * fix: i18n; next config * fix: authchat uid * update i18n * perf: check exists * stop in tool * stop in tool * fix: chat * update action * doc * deploy doc --------- Co-authored-by: YeYuheng <57035043+YYH211@users.noreply.github.com>
37 lines
1019 B
YAML
37 lines
1019 B
YAML
name: 'FastGPT-Test'
|
|
on:
|
|
pull_request:
|
|
workflow_dispatch:
|
|
|
|
# Only one build per PR branch at a time
|
|
concurrency:
|
|
group: 'test-fastgpt-${{ github.head_ref }}'
|
|
cancel-in-progress: true
|
|
|
|
permissions:
|
|
# Required to checkout the code
|
|
contents: read
|
|
# Required to put a comment into the pull-request
|
|
pull-requests: write
|
|
|
|
jobs:
|
|
test:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
with:
|
|
ref: ${{ github.event.pull_request.head.ref }}
|
|
repository: ${{ github.event.pull_request.head.repo.full_name }}
|
|
- uses: pnpm/action-setup@v4
|
|
with:
|
|
version: 9
|
|
- name: 'Install Deps'
|
|
run: pnpm install
|
|
- name: 'Test'
|
|
run: pnpm run test
|
|
- name: 'Report Coverage'
|
|
# Set if: always() to also generate the report if tests are failing
|
|
# Only works if you set `reportOnFailure: true` in your vite config as specified above
|
|
if: always()
|
|
uses: davelosert/vitest-coverage-report-action@v2
|