mirror of
https://github.com/iDvel/rime-ice.git
synced 2026-05-14 00:30:37 +08:00
* ci: add lint scripts * fix(lint): handle luacheck summary with ansi colors * fix(ci): use luarocks to install luacheck * fix(ci): add sudo * test: 调整用例顺序
48 lines
1.1 KiB
YAML
48 lines
1.1 KiB
YAML
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
|
|
if: github.repository == 'iDvel/rime-ice'
|
|
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v6
|
|
|
|
- name: Install lint dependencies
|
|
run: |
|
|
python3 -m pip install yamllint
|
|
sudo apt install -y luarocks
|
|
sudo luarocks install luacheck
|
|
|
|
- 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 lint
|
|
run: make -C others/script lint
|
|
|
|
- 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: make -C others/script smoke
|