Skip to content

Commit bff8676

Browse files
committed
Add GitHub Workflow CI
1 parent 0389e17 commit bff8676

File tree

1 file changed

+44
-0
lines changed

1 file changed

+44
-0
lines changed

.github/workflows/ci-test.yml

+44
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
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 build artifacts
41+
uses: actions/upload-artifact@v4
42+
with:
43+
name: PowerShellEditorServices-module-${{ matrix.os }}
44+
path: out/*.nupkg

0 commit comments

Comments
 (0)