Skip to content

feat: 支持 Modrinth 和 CurseForge 的翻译功能 #59

feat: 支持 Modrinth 和 CurseForge 的翻译功能

feat: 支持 Modrinth 和 CurseForge 的翻译功能 #59

Workflow file for this run

name: Unit Test
on:
push:
# branches: [main]
pull_request:
merge_group:
workflow_dispatch:
jobs:
unit-test:
runs-on: ubuntu-latest
name: Unit test
env:
MCIM_CONFIG: ${{ secrets.MCIM_CONFIG }} # 配置文件
REDIS_CONFIG: ${{ secrets.REDIS_CONFIG }} # 配置文件
MONGODB_CONFIG: ${{ secrets.MONGODB_CONFIG }} # 配置文件
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: recursive
- name: Install python
uses: actions/setup-python@v5
with:
python-version: 3.11
cache: 'pip'
- name: Install just
uses: extractions/setup-just@v2
- name: Start Redis
uses: supercharge/redis-github-action@1.7.0
- name: Start MongoDB
uses: supercharge/mongodb-github-action@1.12.0
- name: Install dependencies
run: |
just mongodb-tool-install
just ci-install
just import-data
just ci-config
- name: Run unit tests
run: |
just ci-test