-
Notifications
You must be signed in to change notification settings - Fork 5
46 lines (34 loc) · 1.05 KB
/
dotnet.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
45
46
name: .NET Build & Test
on:
push:
branches: [ master, dev ]
pull_request:
branches: [ master, dev ]
types: [opened, synchronize, closed]
jobs:
build_test:
strategy:
matrix:
os: [ 'ubuntu-latest', 'windows-latest', 'macOs-latest' ]
dotnet-version: [ '5.0' ]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup .NET Core SDK ${{ matrix.dotnet-version }}
uses: actions/setup-dotnet@v1
with:
dotnet-version: ${{ matrix.dotnet-version }}
- name: Clean Project
run: dotnet clean --configuration Release && dotnet nuget locals all --clear
- name: Install dependencies
run: dotnet restore
- name: Build Project
run: dotnet build --no-restore
- name: Test Project
run: dotnet test --no-build --verbosity normal
- name: Store Artifact
uses: actions/upload-artifact@main
with:
name: Orbital Shell artifacts - ${{ matrix.os }}
path: ./OrbitalShell-CLI/bin/Debug/net5.0/