integration-test #2024
This file contains 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: integration-test | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: '0 */3 * * *' | |
jobs: | |
basic_test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: azure/login@v1 | |
with: | |
creds: ${{ secrets.AZURE_CREDENTIALS }} | |
- name: Specific test - Postive | |
uses: azure/cli@master | |
with: | |
azcliversion: 2.30.0 | |
inlineScript: | | |
az --version | |
az account show --output none | |
- name: Latest version test - Postive | |
uses: azure/cli@master | |
with: | |
azcliversion: latest | |
inlineScript: | | |
az --version | |
az account show --output none | |
- name: Default version test - Postive | |
uses: azure/cli@master | |
with: | |
inlineScript: | | |
az --version | |
az account show --output none | |
- name: Invalid Version test - Negative | |
id: test1 | |
continue-on-error: true | |
uses: azure/cli@master | |
with: | |
azcliversion: 0 | |
inlineScript: | | |
az --version | |
- name: Check Last step failed | |
if: steps.test1.outcome == 'success' | |
uses: actions/github-script@v3 | |
with: | |
script: | | |
core.setFailed('Last action should fail but not. Please check it.') | |
- name: Invalid Script test - Negative | |
id: test2 | |
continue-on-error: true | |
uses: azure/cli@master | |
with: | |
azcliversion: latest | |
inlineScript: " " | |
- name: Check Last step failed | |
if: steps.test2.outcome == 'success' | |
uses: actions/github-script@v3 | |
with: | |
script: | | |
core.setFailed('Last action should fail but not. Please check it.') | |
os_test: | |
runs-on: windows-latest | |
steps: | |
- uses: azure/login@v1 | |
with: | |
creds: ${{ secrets.AZURE_CREDENTIALS }} | |
- name: Invalid OS - Negative | |
id: test3 | |
continue-on-error: true | |
uses: azure/cli@master | |
with: | |
azcliversion: latest | |
inlineScript: | | |
az --version | |
- name: Check Last step failed | |
if: steps.test3.outcome == 'success' | |
uses: actions/github-script@v3 | |
with: | |
script: | | |
core.setFailed('Last action should fail but not. Please check it.') |