-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (38 loc) · 1.11 KB
/
test.yml
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
name: DotNet- Build and Test
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
#workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set env
run: |
echo "SANDBOX_USERNAME=${{ secrets.SANDBOX_USERNAME }}" >> $GITHUB_ENV
echo "SANDBOX_PASSWORD=${{ secrets.SANDBOX_PASSWORD }}" >> $GITHUB_ENV
- name: Setup .NET 2.x
uses: actions/setup-dotnet@v1
with:
dotnet-version: 2.x.x
- name: Setup .NET 3.x
uses: actions/setup-dotnet@v1
with:
dotnet-version: 3.x.x
- name: Setup .NET 5.x
uses: actions/setup-dotnet@v1
with:
dotnet-version: 5.x.x
- name: Setup .NET 6.x
uses: actions/setup-dotnet@v1
with:
dotnet-version: 6.x.x
- name: Restore dependencies
run: dotnet restore
- name: Build Package
run: dotnet build --no-restore --configuration Release
- name: Test cases
run: dotnet test --no-build --verbosity normal --configuration Release