Skip to content

Commit 00dde83

Browse files
committed
Add GitHub Workflow CI
1 parent 4af36e3 commit 00dde83

File tree

1 file changed

+51
-0
lines changed

1 file changed

+51
-0
lines changed

.github/workflows/ci-test.yml

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
name: CI Tests
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
pull_request:
7+
branches: [ main ]
8+
merge_group:
9+
types: [ checks_requested ]
10+
11+
jobs:
12+
ci:
13+
name: dotnet
14+
strategy:
15+
matrix:
16+
os: [ windows-latest, macos-latest, ubuntu-latest ]
17+
runs-on: ${{ matrix.os }}
18+
env:
19+
DOTNET_NOLOGO: true
20+
DOTNET_CLI_TELEMETRY_OPTOUT: true
21+
DOTNET_GENERATE_ASPNET_CERTIFICATE: false
22+
steps:
23+
- name: Checkout repository
24+
uses: actions/checkout@v4
25+
26+
- name: Install dotnet
27+
uses: actions/setup-dotnet@v4
28+
with:
29+
cache: true
30+
cache-dependency-path: '**/*.csproj'
31+
32+
- name: Install PSResources
33+
shell: pwsh
34+
run: ./tools/installPSResources.ps1
35+
36+
- name: Build and test
37+
shell: pwsh
38+
run: Invoke-Build -Configuration Release Build, Package
39+
40+
- name: Upload module
41+
if: always()
42+
uses: actions/upload-artifact@v4
43+
with:
44+
name: ConsoleGuiTools-module-${{ matrix.os }}
45+
path: module
46+
47+
- name: Upload NuGet package
48+
uses: actions/upload-artifact@v4
49+
with:
50+
name: ConsoleGuiTools-nupkg-${{ matrix.os }}
51+
path: out/*.nupkg

0 commit comments

Comments
 (0)