forked from Shane32/EPPlus
-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (35 loc) · 931 Bytes
/
Copy pathtest-code.yml
File metadata and controls
37 lines (35 loc) · 931 Bytes
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
name: Test code
on:
pull_request:
jobs:
test:
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
name: ${{ matrix.os }}
runs-on: ${{ matrix.os }}
steps:
- name: Checkout source
uses: actions/checkout@v6
- name: Setup .NET Core SDKs for Windows
if: matrix.os == 'windows-latest'
uses: actions/setup-dotnet@v5
with:
dotnet-version: |
2.1.x
3.1.x
6.0.x
8.0.x
- name: Setup .NET Core SDKs on Linux
if: matrix.os == 'ubuntu-latest'
uses: actions/setup-dotnet@v5
with:
dotnet-version: |
6.0.x
8.0.x
- name: Install dependencies
run: dotnet restore
- name: Build solution [Debug]
run: dotnet build --no-restore -c Debug
- name: Test solution [Debug]
run: dotnet test --no-restore --no-build