test: add rime smoke framework (#1511)

* test: add config smoke framework
* ci: add smoke test before packing
* ci: add cache
This commit is contained in:
mirtlecn
2026-03-26 13:02:38 +08:00
committed by GitHub
parent 4e54d7edb1
commit fbcd597726
8 changed files with 862 additions and 51 deletions

37
.github/workflows/test.yml vendored Normal file
View File

@@ -0,0 +1,37 @@
name: Smoke test
on:
push:
branches-ignore:
- main
paths:
- "**/**"
- "!**.md"
- "!**.gitignore"
- "!.github/**"
pull_request:
workflow_dispatch:
permissions:
contents: read
jobs:
smoke-linux:
name: Rime smoke test
runs-on: ubuntu-24.04
steps:
- name: Checkout repository
uses: actions/checkout@v6
- name: Cache rime cli bundle
uses: actions/cache@v5
with:
path: ${{ runner.temp }}/rime-cli-cache/rime-cli-linux-1.6.1.zip
key: rime-cli-linux-1.6.1
- name: Run smoke test suite
env:
RIME_CLI_URL: https://github.com/mirtlecn/public/releases/download/v1.6.1/rime-cli-linux-1.6.1.zip
RIME_CLI_CACHE_PATH: ${{ runner.temp }}/rime-cli-cache/rime-cli-linux-1.6.1.zip
run: bash ./others/script/smoke/run.sh rime_ice