mirror of
https://github.com/iDvel/rime-ice.git
synced 2026-05-14 00:30:37 +08:00
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:
39
.github/workflows/release.yml
vendored
39
.github/workflows/release.yml
vendored
@@ -14,13 +14,40 @@ on:
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
Release:
|
||||
runs-on: ubuntu-latest
|
||||
smoke:
|
||||
name: Smoke test before release
|
||||
runs-on: ubuntu-24.04
|
||||
# if: github.repository == 'iDvel/rime-ice'
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
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
|
||||
|
||||
package:
|
||||
name: Package and release
|
||||
runs-on: ubuntu-24.04
|
||||
if: github.repository == 'iDvel/rime-ice'
|
||||
needs:
|
||||
- smoke
|
||||
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
uses: actions/checkout@v6
|
||||
|
||||
- name: Setup Go
|
||||
if: ${{ contains(github.event.head_commit.message, ' [build]') || github.event_name == 'workflow_dispatch' }}
|
||||
@@ -56,7 +83,7 @@ jobs:
|
||||
|
||||
- name: Create nightly release
|
||||
if: ${{ github.ref == 'refs/heads/main' }}
|
||||
uses: "softprops/action-gh-release@v2"
|
||||
uses: softprops/action-gh-release@v2
|
||||
with:
|
||||
body: |
|
||||
## 说明
|
||||
@@ -79,7 +106,7 @@ jobs:
|
||||
|
||||
- name: Create stable release
|
||||
if: startsWith(github.ref, 'refs/tags/')
|
||||
uses: "softprops/action-gh-release@v2"
|
||||
uses: softprops/action-gh-release@v2
|
||||
with:
|
||||
body: |
|
||||
## 说明
|
||||
@@ -108,4 +135,4 @@ jobs:
|
||||
git push
|
||||
else
|
||||
echo "No changes to commit."
|
||||
fi
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user