-
Notifications
You must be signed in to change notification settings - Fork 3
36 lines (32 loc) · 1.17 KB
/
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
name: Main
on:
push:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup .NET Core
uses: actions/setup-dotnet@v3
- name: Build
run: dotnet build -c Release "src/Hedgehog.Xunit"
- name: Test F#
run: dotnet test -c Release "tests/Hedgehog.Xunit.Tests.FSharp" /p:CollectCoverage=true /p:CoverletOutput=TestResults/ /p:CoverletOutputFormat=lcov
- name: Test C#
run: dotnet test -c Release "tests/Hedgehog.Xunit.Tests.CSharp"
- name: Run F# Examples
run: dotnet test -c Release "examples/Hedgehog.Xunit.Examples.FSharp"
- name: Run C# Examples
run: dotnet test -c Release "examples/Hedgehog.Xunit.Examples.CSharp"
- name: Coveralls
uses: coverallsapp/github-action@master
with:
path-to-lcov: tests/Hedgehog.Xunit.Tests.FSharp/TestResults/coverage.info
github-token: ${{ secrets.GITHUB_TOKEN }}
- name: Publish NuGet
uses: alirezanet/[email protected]
with:
PROJECT_FILE_PATH: "src/Hedgehog.Xunit/Hedgehog.Xunit.fsproj"
PACKAGE_NAME: "Hedgehog.Xunit"
NUGET_KEY: ${{secrets.NUGET_API_KEY}}