Automate release gates in CI

This commit is contained in:
Зарубин Филипп
2026-06-24 12:15:54 +03:00
parent dd6b69b893
commit fb70104fd1
+18 -1
View File
@@ -1,6 +1,7 @@
name: release-check name: release-check
on: on:
workflow_dispatch:
push: push:
branches: [main] branches: [main]
pull_request: pull_request:
@@ -22,15 +23,31 @@ jobs:
- uses: actions/setup-node@v5 - uses: actions/setup-node@v5
with: with:
node-version: '24' node-version: '24'
cache: npm
- uses: actions/setup-python@v6 - uses: actions/setup-python@v6
with: with:
python-version: '3.11' python-version: '3.11'
- name: Install npm dependencies
run: npm ci
- name: Ensure audit tools
run: |
if ! command -v rg >/dev/null 2>&1; then
sudo apt-get update
sudo apt-get install -y ripgrep
fi
- name: Show runtime versions - name: Show runtime versions
run: | run: |
node --version node --version
npm --version npm --version
python3 --version python3 --version
rg --version
- name: Run post-run report smoke - name: Run post-run report smoke
run: npm run postrun -- --run-id ci-postrun --since-days 30 --reports "$RUNNER_TEMP/mnemazine-postrun" --quiet run: npm run postrun -- --run-id ci-postrun --since-days 30 --reports "$RUNNER_TEMP/mnemazine-postrun" --quiet
- name: Run release gate (syntax, demo smoke, public scan, bilingual README parity) - name: Run local security audit
run: npm run audit:local
- name: Run setup dry-run smoke
run: printf '2\n2\n2\n' | MNEMAZINE_SETUP_DRYRUN=1 bash setup.sh
- name: Run release test suite
run: npm test
- name: Run release gate directly
run: npm run release-check run: npm run release-check