-
Notifications
You must be signed in to change notification settings - Fork 69
50 lines (42 loc) · 1.17 KB
/
ci-workflow.yml
File metadata and controls
50 lines (42 loc) · 1.17 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
name: ci-workflow
on:
push:
workflow_dispatch:
jobs:
test_action_job:
runs-on: ubuntu-latest
steps:
- name: Check out source code
uses: actions/checkout@v4
- uses: azure/login@v2
with:
creds: ${{ secrets.AZURE_CREDENTIALS }}
- name: Setup Node.js
uses: actions/setup-node@v6
with:
node-version: "24.x"
- run: npm install --production
- run: npm i -g ts-node
- run: npm install typescript
- name: Azure CLI Version test
env:
INPUT_AZCLIVERSION: 2.0.72
INPUT_INLINESCRIPT: |
az account show
az storage -h
EXPECTED_TO: pass
run: ts-node test/main.test.ts
- name: Azure CLI Version Test - Negative
env:
INPUT_AZCLIVERSION: 0
INPUT_INLINESCRIPT: |
az account show
az storage -h
EXPECTED_TO: fail
run: ts-node test/main.test.ts
- name: Inline Script Test - Negative
env:
INPUT_AZCLIVERSION: 2.0.72
INPUT_INLINESCRIPT: " "
EXPECTED_TO: fail
run: ts-node test/main.test.ts