-
Notifications
You must be signed in to change notification settings - Fork 1
40 lines (38 loc) · 993 Bytes
/
main.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
name: Build and Test
on:
push:
branches:
- master
pull_request:
branches:
- master
schedule:
- cron: '0 0 * * 6' # every Saturday
workflow_dispatch:
jobs:
test:
runs-on: ${{ matrix.image }}
strategy:
fail-fast: false
matrix:
image: [macos-12, ubuntu-22.04, windows-2022]
env:
DOTNET_NOLOGO: 1
DOTNET_CLI_TELEMETRY_OPTOUT: 1
NUGET_PACKAGES: ${{ github.workspace }}/.github/nuget-packages
steps:
- uses: actions/checkout@v2
# Backend
- name: Set up .NET SDK
uses: actions/setup-dotnet@v4
with:
dotnet-version: '8.0.x'
- name: NuGet Cache
uses: actions/cache@v2
with:
path: ${{ env.NUGET_PACKAGES }}
key: ${{ runner.os }}.nuget.${{ hashFiles('**/*.fsproj') }}
- name: Backend Build
run: dotnet build --configuration Release
- name: Backend Publish
run: dotnet publish --configuration Release