Fix #175: Mount AZURE_CONFIG_DIR
folder instead of ~/.azure
#72
Workflow file for this run
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: pr-test | |
on: | |
pull_request: | |
branches: | |
- master | |
- releases/* | |
push: | |
workflow_dispatch: | |
jobs: | |
basic_test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out source code | |
uses: actions/checkout@v4 | |
- name: Setup Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: "20.x" | |
- name: Install dependencies | |
run: | | |
npm i -g @vercel/ncc | |
npm install | |
- name: Compile files | |
run: | | |
ncc build -C -m src/entrypoint.ts | |
- name: Specific version test- Postive | |
uses: ./ | |
with: | |
azcliversion: 2.30.0 | |
inlineScript: | | |
az --version | |
- name: Latest version test - Postive | |
uses: ./ | |
with: | |
azcliversion: latest | |
inlineScript: | | |
az --version | |
- name: Default version test - Postive | |
uses: ./ | |
with: | |
inlineScript: | | |
az --version | |
- name: Invalid Version test - Negative | |
id: test1 | |
continue-on-error: true | |
uses: ./ | |
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: ./ | |
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: | |
- name: Check out source code | |
uses: actions/checkout@v4 | |
- name: Setup Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: "20.x" | |
- name: Install dependencies | |
run: | | |
npm i -g @vercel/ncc | |
npm install | |
- name: Compile files | |
run: | | |
ncc build -C -m src/entrypoint.ts | |
- name: Invalid OS - Negative | |
id: test3 | |
continue-on-error: true | |
uses: ./ | |
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.') |