-
Notifications
You must be signed in to change notification settings - Fork 4
35 lines (29 loc) · 803 Bytes
/
Copy pathci.yaml
File metadata and controls
35 lines (29 loc) · 803 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
name: CI
on:
push:
branches:
- main
- staging
- expt
pull_request:
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-dotnet@v1
with:
dotnet-version: '8.0.x' # SDK Version to use; x will use the latest version of the channel
- uses: actions/cache@v4
with:
path: ~/.nuget/packages
key: ${{ runner.os }}-nuget-${{ hashFiles('**/packages.lock.json') }}
restore-keys: |
${{ runner.os }}-nuget-
- name: Compile application
run: |
dotnet build ClassTranscribeServer.sln --configuration Release
- name: Run unit tests
run: |
dotnet test UnitTests --configuration Release -v n