Skip to content

Commit 482766b

Browse files
authored
Merge pull request #2 from brianary/brianary/issue1
👷Get continuous improvement builds working separately from deployment
2 parents 8e846ae + 63b434d commit 482766b

5 files changed

Lines changed: 39 additions & 57 deletions

File tree

.github/workflows/continuous.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: .NET build and test
2+
on: push
3+
jobs:
4+
continuous-integration:
5+
name: Build and test
6+
runs-on: ${{ matrix.os }}
7+
strategy:
8+
matrix:
9+
os: [ubuntu-latest, windows-latest]
10+
permissions:
11+
contents: read
12+
issues: read
13+
checks: write
14+
pull-requests: write
15+
steps:
16+
- name: .NET CI
17+
uses: brianary/dotnet-ci@v1
18+
with:
19+
test-target: test

.github/workflows/deploy.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
name: Publish module to PowerShell Gallery
2+
on:
3+
workflow_run:
4+
workflows: [".NET build and test"]
5+
types: [completed]
6+
branches: [main]
7+
jobs:
8+
publish:
9+
name: Publish to PowerShell Gallery
10+
runs-on: windows-latest
11+
steps:
12+
- name: Publish module
13+
uses: brianary/powershell-gallery-publish@v1
14+
with:
15+
gallery-key: ${{ secrets.gallerykey }}

.github/workflows/dotnetcore.yml

Lines changed: 0 additions & 54 deletions
This file was deleted.

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
.*/
2+
!.github/
23
!.template.config/
34
bin/
45
obj/

src/PSModuleTemplate/PSModuleTemplate.fsproj

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
<TargetFramework>netstandard2.0</TargetFramework>
55
<GenerateAssemblyInfo>true</GenerateAssemblyInfo>
66
<GenerateDocumentationFile>true</GenerateDocumentationFile>
7-
<PublishTrimmed>true</PublishTrimmed>
7+
<PublishTrimmed>false</PublishTrimmed>
8+
<PublishSingleFile>false</PublishSingleFile>
89
</PropertyGroup>
910

1011
<ItemGroup>
@@ -41,9 +42,9 @@
4142
<Target Name="Pester" DependsOnTargets="Publish" Condition="'$(Configuration)' == 'Debug'">
4243
<Copy SourceFiles="$(OutputPath)\publish\FSharp.Core.dll"
4344
DestinationFolder="$(OutputPath)" />
44-
<Exec Command='pwsh -noni -nop -c "cd ..\..; Invoke-Pester"'
45+
<Exec Command='pwsh -noni -nop -c "cd ..\..; Invoke-Pester -Configuration @{TestResult=@{Enabled=!0}}"'
4546
IgnoreExitCode="true" IgnoreStandardErrorWarningFormat="true" />
46-
<Exec Command='powershell -noni -nop -c "cd ..\..; Invoke-Pester"'
47+
<Exec Command='powershell -noni -nop -c "cd ..\..; Invoke-Pester -Configuration @{TestResult=@{Enabled=!0}}"'
4748
IgnoreExitCode="true" IgnoreStandardErrorWarningFormat="true" Condition=" '$(OS)' == 'Windows_NT' " />
4849
</Target>
4950

0 commit comments

Comments
 (0)