Skip to content

Commit 4672a75

Browse files
benbpradhgupta
authored andcommitted
[azsdk-cli] Use github actions for CI testing (Azure#11789)
1 parent eab3aa7 commit 4672a75

2 files changed

Lines changed: 57 additions & 15 deletions

File tree

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: azsdk-cli - Test
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
paths:
8+
- .github/workflows/azsdk-cli-tests.yml
9+
- tools/azsdk-cli/**
10+
pull_request:
11+
paths:
12+
- .github/workflows/azsdk-cli-tests.yml
13+
- tools/azsdk-cli/**
14+
15+
jobs:
16+
azsdk-cli:
17+
strategy:
18+
matrix:
19+
os: [ubuntu-latest, windows-latest]
20+
21+
runs-on: ${{ matrix.os }}
22+
23+
steps:
24+
- uses: actions/checkout@v4
25+
with:
26+
sparse-checkout: |
27+
.github/workflows
28+
Directory.Build.Props
29+
Directory.Build.Targets
30+
global.json
31+
eng/
32+
tools/azsdk-cli
33+
tools/codeowners-utils
34+
35+
- name: Setup dotnet
36+
uses: actions/setup-dotnet@v4
37+
with:
38+
dotnet-version: |
39+
8.0.x
40+
9.0.x
41+
42+
- run: dotnet test ./tools/azsdk-cli

tools/azsdk-cli/ci.yml

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -25,18 +25,18 @@ extends:
2525
ToolDirectory: tools/azsdk-cli/Azure.Sdk.Tools.Cli
2626
TestDirectory: tools/azsdk-cli/Azure.Sdk.Tools.Cli.Tests
2727
StandaloneExeMatrix:
28-
- rid: osx-x64
29-
framework: net8.0
30-
assembly: azsdk
31-
- rid: osx-arm64
32-
framework: net8.0
33-
assembly: azsdk
34-
- rid: win-x64
35-
framework: net8.0
36-
assembly: azsdk
37-
- rid: linux-x64
38-
framework: net8.0
39-
assembly: azsdk
40-
- rid: linux-arm64
41-
framework: net8.0
42-
assembly: azsdk
28+
- rid: linux-x64
29+
framework: net8.0
30+
assembly: azsdk
31+
- rid: linux-arm64
32+
framework: net8.0
33+
assembly: azsdk
34+
- rid: osx-x64
35+
framework: net8.0
36+
assembly: azsdk
37+
- rid: osx-arm64
38+
framework: net8.0
39+
assembly: azsdk
40+
- rid: win-x64
41+
framework: net8.0
42+
assembly: azsdk

0 commit comments

Comments
 (0)