-
Notifications
You must be signed in to change notification settings - Fork 323
50 lines (43 loc) · 1.21 KB
/
ci-test.yml
File metadata and controls
50 lines (43 loc) · 1.21 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
name: CI Tests
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
ci:
name: dotnet
strategy:
matrix:
os: [ windows-latest, macos-latest, ubuntu-latest ]
runs-on: ${{ matrix.os }}
env:
DOTNET_NOLOGO: true
DOTNET_GENERATE_ASPNET_CERTIFICATE: false
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install dotnet
uses: actions/setup-dotnet@v4
with:
cache: true
cache-dependency-path: '**/*.csproj'
global-json-file: ./global.json
- name: Install PSResources
shell: pwsh
run: ./tools/installPSResources.ps1
- name: Build and test
shell: pwsh
run: Invoke-Build -Configuration Release RunTests
- name: Upload build artifacts
if: always()
uses: actions/upload-artifact@v4
with:
name: PSReadLine-module-${{ matrix.os }}
path: bin/Release/PSReadLine.zip
- name: Upload test results
uses: actions/upload-artifact@v4
if: always()
with:
name: PSReadLine-test-results-${{ matrix.os }}
path: test/TestResults/xUnitTestResults.en-US.xml