Skip to content

Merge pull request #16 from JohnEffo/nethod-parameter-generator #51

Merge pull request #16 from JohnEffo/nethod-parameter-generator

Merge pull request #16 from JohnEffo/nethod-parameter-generator #51

Workflow file for this run

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}}