Skip to content

Commit 287c740

Browse files
committed
workflows
1 parent fcb97f3 commit 287c740

2 files changed

Lines changed: 54 additions & 0 deletions

File tree

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: CI
2+
3+
on:
4+
pull_request:
5+
branches: [ main ]
6+
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
strategy:
12+
matrix:
13+
dotnet-version: [6.0, 7.0, 8.0, 9.0]
14+
steps:
15+
- name: Checkout repository
16+
uses: actions/checkout@v4
17+
18+
- name: Setup .NET
19+
uses: actions/setup-dotnet@v4
20+
with:
21+
dotnet-version: ${{ matrix.dotnet-version }}
22+
23+
- name: Run tests
24+
run: |
25+
# Run tests that target the runtime matching the SDK where possible.
26+
# Most test projects will run fine with the installed SDK.
27+
dotnet test ./cas-dotnet-sdk-tests/cas-dotnet-sdk-tests.csproj -c Release --logger "trx"
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: CI
2+
3+
on:
4+
pull_request:
5+
branches: [ main ]
6+
7+
8+
jobs:
9+
build:
10+
runs-on: windows-latest
11+
strategy:
12+
matrix:
13+
dotnet-version: [6.0, 7.0, 8.0, 9.0]
14+
steps:
15+
- name: Checkout repository
16+
uses: actions/checkout@v4
17+
18+
- name: Setup .NET
19+
uses: actions/setup-dotnet@v4
20+
with:
21+
dotnet-version: ${{ matrix.dotnet-version }}
22+
23+
- name: Run tests
24+
run: |
25+
# Run tests that target the runtime matching the SDK where possible.
26+
# Most test projects will run fine with the installed SDK.
27+
dotnet test ./cas-dotnet-sdk-tests/cas-dotnet-sdk-tests.csproj -c Release --logger "trx"

0 commit comments

Comments
 (0)