feat: Added React Demo webApp and deployment workflow #18
Workflow file for this run
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: API Proxy Lint | |
| on: | |
| pull_request: | |
| paths: | |
| - "examples/Web Applications/Dev Tools/ApiServiceProxy" | |
| - ".github/workflows/api-proxy-lint.yml" | |
| push: | |
| branches: | |
| - "**" | |
| paths: | |
| - "examples/Web Applications/Dev Tools/ApiServiceProxy" | |
| - ".github/workflows/api-proxy-lint.yml" | |
| jobs: | |
| lint: | |
| runs-on: ubuntu-latest | |
| defaults: | |
| run: | |
| working-directory: "examples/Web Applications/Dev Tools/ApiServiceProxy" | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v3 | |
| - name: Set up proxy config | |
| run: cp proxyConfig.example.js proxyConfig.js | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Lint code | |
| run: npm run lint | |
| - name: Start server (smoke test) | |
| run: | | |
| node ./index.js & | |
| sleep 3 | |
| kill $! |