-
Notifications
You must be signed in to change notification settings - Fork 76
43 lines (35 loc) · 1.03 KB
/
FSharpTest.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
name: 'F# Test'
on:
push:
branches:
- master
pull_request:
branches:
- '*'
jobs:
Test:
strategy:
matrix:
os: [windows-latest, ubuntu-latest, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
with:
submodules: 'recursive'
- name: Setup .NET
uses: actions/setup-dotnet@v1
with:
dotnet-version: 5.0.202
- name: Setup .NET 7
uses: actions/setup-dotnet@v1
with:
dotnet-version: '7.0.x'
include-prerelease: true
- name: Build Tests # We need it to be able to retry
run: |
dotnet add "Sources/Tests/FSharpWrapperUnitTests" package Microsoft.NET.Test.Sdk # Update is required for GitHubActionsTestLogger to print anything
dotnet add "Sources/Tests/FSharpWrapperUnitTests" package GitHubActionsTestLogger
dotnet build Sources/Tests/FSharpWrapperUnitTests
- name: Test
run: |
dotnet test "Sources/Tests/FSharpWrapperUnitTests" -c Release -l GitHubActions