|
| 1 | +on: |
| 2 | + schedule: |
| 3 | + # Run twice per day (12:45 AM & PM) |
| 4 | + - cron: '45 */12 * * *' |
| 5 | + push: |
| 6 | + branches: |
| 7 | + # Push to a branch that ends with "/trigger-int-tests" to manually trigger tests |
| 8 | + - '**/trigger-int-tests' |
| 9 | +name: Integration Tests |
| 10 | +jobs: |
| 11 | + int_tests_node_10: |
| 12 | + name: Node 10 |
| 13 | + runs-on: ubuntu-latest |
| 14 | + steps: |
| 15 | + - uses: actions/checkout@master |
| 16 | + - name: Cache node_modules |
| 17 | + id: cache-modules |
| 18 | + uses: actions/cache@v1 |
| 19 | + with: |
| 20 | + path: node_modules |
| 21 | + key: ${{ runner.OS }}-build-${{ hashFiles('package.json') }} |
| 22 | + - name: npm install |
| 23 | + if: steps.cache-modules.outputs.cache-hit != 'true' |
| 24 | + run: npm install |
| 25 | + - name: build |
| 26 | + run: tsc |
| 27 | + - name: node 10 integration tests |
| 28 | + run: npm run test:int -- -t deploy -d node10 |
| 29 | + env: |
| 30 | + AZURE_SUBSCRIPTION_ID: ${{ secrets.AZURE_SUBSCRIPTION_ID}} |
| 31 | + AZURE_CLIENT_ID: ${{ secrets.AZURE_CLIENT_ID}} |
| 32 | + AZURE_CLIENT_SECRET: ${{ secrets.AZURE_CLIENT_SECRET}} |
| 33 | + AZURE_TENANT_ID: ${{ secrets.AZURE_TENANT_ID}} |
| 34 | + int_tests_node_12: |
| 35 | + name: Node 12 |
| 36 | + runs-on: ubuntu-latest |
| 37 | + steps: |
| 38 | + - uses: actions/checkout@master |
| 39 | + - name: Cache node_modules |
| 40 | + id: cache-modules |
| 41 | + uses: actions/cache@v1 |
| 42 | + with: |
| 43 | + path: node_modules |
| 44 | + key: ${{ runner.OS }}-build-${{ hashFiles('package.json') }} |
| 45 | + - name: npm install |
| 46 | + if: steps.cache-modules.outputs.cache-hit != 'true' |
| 47 | + run: npm install |
| 48 | + - name: build |
| 49 | + run: tsc |
| 50 | + - name: node 12 integration tests |
| 51 | + run: npm run test:int -- -t deploy -d node12 |
| 52 | + env: |
| 53 | + AZURE_SUBSCRIPTION_ID: ${{ secrets.AZURE_SUBSCRIPTION_ID}} |
| 54 | + AZURE_CLIENT_ID: ${{ secrets.AZURE_CLIENT_ID}} |
| 55 | + AZURE_CLIENT_SECRET: ${{ secrets.AZURE_CLIENT_SECRET}} |
| 56 | + AZURE_TENANT_ID: ${{ secrets.AZURE_TENANT_ID}} |
| 57 | + int_tests_python: |
| 58 | + name: Python |
| 59 | + runs-on: ubuntu-latest |
| 60 | + steps: |
| 61 | + - uses: actions/checkout@master |
| 62 | + - name: Cache node_modules |
| 63 | + id: cache-modules |
| 64 | + uses: actions/cache@v1 |
| 65 | + with: |
| 66 | + path: node_modules |
| 67 | + key: ${{ runner.OS }}-build-${{ hashFiles('package.json') }} |
| 68 | + - name: npm install |
| 69 | + if: steps.cache-modules.outputs.cache-hit != 'true' |
| 70 | + run: npm install |
| 71 | + - name: build |
| 72 | + run: tsc |
| 73 | + - name: python integration tests |
| 74 | + run: npm run test:int -- -t deploy -d python |
| 75 | + env: |
| 76 | + AZURE_SUBSCRIPTION_ID: ${{ secrets.AZURE_SUBSCRIPTION_ID}} |
| 77 | + AZURE_CLIENT_ID: ${{ secrets.AZURE_CLIENT_ID}} |
| 78 | + AZURE_CLIENT_SECRET: ${{ secrets.AZURE_CLIENT_SECRET}} |
| 79 | + AZURE_TENANT_ID: ${{ secrets.AZURE_TENANT_ID}} |
0 commit comments