Skip to content

Commit cf3e52d

Browse files
authored
Create coverage.yml
1 parent fa7a447 commit cf3e52d

File tree

1 file changed

+99
-0
lines changed

1 file changed

+99
-0
lines changed

.github/workflows/coverage.yml

+99
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,99 @@
1+
name: Azure CLI AzDev Setup
2+
3+
on:
4+
push:
5+
branches:
6+
- dev
7+
workflow_dispatch:
8+
9+
jobs:
10+
github-runner:
11+
name: GitHub Runner Setup
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- name: Checkout Repositories
16+
run: |
17+
set -ev
18+
# Clone azure-cli
19+
git clone -q --single-branch -b dev https://github.com/Azure/azure-cli.git ../azure-cli
20+
git clone --depth 1 -b main https://github.com/Azure/azure-cli-extensions.git ./azure-cli-extensions
21+
22+
- name: Set Up Python Environment
23+
run: |
24+
set -ev
25+
python -m venv env
26+
chmod +x env/bin/activate
27+
source ./env/bin/activate
28+
python -m pip install -U pip
29+
30+
- name: Install AzDev
31+
run: |
32+
set -ev
33+
source ./env/bin/activate
34+
pip install azdev
35+
azdev --version
36+
37+
- name: Setup AzDev with Repos
38+
run: |
39+
set -ev
40+
source ./env/bin/activate
41+
azdev setup -c ../azure-cli -r ./azure-cli-extensions --debug
42+
pip list -v
43+
44+
- name: List Azure CLI Commands
45+
run: |
46+
set -ev
47+
source ./env/bin/activate
48+
az --version
49+
azdev extension add "*"
50+
azdev statistics list-command-table CLI --statistics-only
51+
52+
self-hosted-runner:
53+
name: Self-Hosted Runner Setup
54+
runs-on: [self-hosted]
55+
56+
steps:
57+
- name: Checkout Repositories
58+
run: |
59+
set -ev
60+
git clone -q --single-branch -b dev https://github.com/Azure/azure-cli.git ../azure-cli
61+
git clone --depth 1 -b main https://github.com/Azure/azure-cli-extensions.git ./azure-cli-extensions
62+
63+
- name: Check Out Specific Commits
64+
run: |
65+
set -ev
66+
cd ../azure-cli
67+
git checkout f205ee4
68+
cd ../azure-cli-extensions
69+
git checkout fc5ae18
70+
71+
- name: Set Up Python Environment
72+
run: |
73+
set -ev
74+
python -m venv env
75+
chmod +x env/bin/activate
76+
source ./env/bin/activate
77+
python -m pip install -U pip
78+
79+
- name: Install AzDev
80+
run: |
81+
set -ev
82+
source ./env/bin/activate
83+
pip install azdev
84+
azdev --version
85+
86+
- name: Setup AzDev with Repos
87+
run: |
88+
set -ev
89+
source ./env/bin/activate
90+
azdev setup -c ../azure-cli -r ./azure-cli-extensions --debug
91+
pip list -v
92+
93+
- name: List Azure CLI Commands
94+
run: |
95+
set -ev
96+
source ./env/bin/activate
97+
az --version
98+
azdev extension add "*"
99+
azdev statistics list-command-table CLI --statistics-only

0 commit comments

Comments
 (0)