test: CI test for demos

This commit is contained in:
Yang Jun
2024-08-28 00:31:59 +08:00
committed by Jun Yang
parent ce84cd6f43
commit 3eb307ad86
21 changed files with 14849 additions and 8727 deletions
+25
View File
@@ -46,3 +46,28 @@ jobs:
with:
name: npm-logs
path: ~/.npm/_logs
demo:
name: Demo Check
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 22
- name: Download artifacts
uses: actions/download-artifact@v3
with:
name: dist-ubuntu-latest
path: dist
- name: Run Demo Test
run: npm run test:demo
- name: Archive npm failure logs
uses: actions/upload-artifact@v3
if: failure()
with:
name: npm-logs
path: ~/.npm/_logs