Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions .github/workflows/continuous.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: .NET build and test
on: push
jobs:
continuous-integration:
name: Build and test
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
permissions:
contents: read
issues: read
checks: write
pull-requests: write
steps:
- name: .NET CI
uses: brianary/dotnet-ci@v1
with:
test-target: test
15 changes: 15 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: Publish module to PowerShell Gallery
on:
workflow_run:
workflows: [".NET build and test"]
types: [completed]
branches: [main]
jobs:
publish:
name: Publish to PowerShell Gallery
runs-on: windows-latest
steps:
- name: Publish module
uses: brianary/powershell-gallery-publish@v1
with:
gallery-key: ${{ secrets.gallerykey }}
54 changes: 0 additions & 54 deletions .github/workflows/dotnetcore.yml

This file was deleted.

1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
.*/
!.github/
!.template.config/
bin/
obj/
Expand Down
7 changes: 4 additions & 3 deletions src/PSModuleTemplate/PSModuleTemplate.fsproj
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
<TargetFramework>netstandard2.0</TargetFramework>
<GenerateAssemblyInfo>true</GenerateAssemblyInfo>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<PublishTrimmed>true</PublishTrimmed>
<PublishTrimmed>false</PublishTrimmed>
<PublishSingleFile>false</PublishSingleFile>
</PropertyGroup>

<ItemGroup>
Expand Down Expand Up @@ -41,9 +42,9 @@
<Target Name="Pester" DependsOnTargets="Publish" Condition="'$(Configuration)' == 'Debug'">
<Copy SourceFiles="$(OutputPath)\publish\FSharp.Core.dll"
DestinationFolder="$(OutputPath)" />
<Exec Command='pwsh -noni -nop -c "cd ..\..; Invoke-Pester"'
<Exec Command='pwsh -noni -nop -c "cd ..\..; Invoke-Pester -Configuration @{TestResult=@{Enabled=!0}}"'
IgnoreExitCode="true" IgnoreStandardErrorWarningFormat="true" />
<Exec Command='powershell -noni -nop -c "cd ..\..; Invoke-Pester"'
<Exec Command='powershell -noni -nop -c "cd ..\..; Invoke-Pester -Configuration @{TestResult=@{Enabled=!0}}"'
IgnoreExitCode="true" IgnoreStandardErrorWarningFormat="true" Condition=" '$(OS)' == 'Windows_NT' " />
</Target>

Expand Down