Repository navigation
Add External Phone Provider OTP-delivery Azure Function sample (JavaScript, .NET, Python) #13
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: CI | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| jobs: | |
| javascript: | |
| name: JavaScript (Node.js) | |
| runs-on: ubuntu-latest | |
| defaults: | |
| run: | |
| working-directory: javascript | |
| strategy: | |
| matrix: | |
| node-version: [20.x, 22.x] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Use Node.js ${{ matrix.node-version }} | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: ${{ matrix.node-version }} | |
| - run: npm ci | |
| - run: npm test | |
| dotnet: | |
| name: C# (.NET isolated) | |
| runs-on: ubuntu-latest | |
| defaults: | |
| run: | |
| working-directory: dotnet | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-dotnet@v4 | |
| with: | |
| dotnet-version: '8.0.x' | |
| - run: dotnet build | |
| - run: dotnet test tests | |
| python: | |
| name: Python (v2 model) | |
| runs-on: ubuntu-latest | |
| defaults: | |
| run: | |
| working-directory: python | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.11' | |
| - run: pip install -r requirements.txt pytest | |
| - run: python -m pytest tests |