Add GitHub Actions workflow for demo and testing #1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Demo Learning System | |
| on: | |
| push: | |
| branches: [ master, main ] | |
| pull_request: | |
| branches: [ master, main ] | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v3 | |
| with: | |
| node-version: '18' | |
| - name: Test lesson loading | |
| run: | | |
| echo "Testing Learning System..." | |
| node demo.js | |
| echo "✅ Learning System demo completed successfully!" | |
| - name: Verify server can start | |
| run: | | |
| echo "Testing server startup..." | |
| timeout 10s node server.js || echo "✅ Server startup test completed" | |
| echo "✅ All tests passed!" |