-
Notifications
You must be signed in to change notification settings - Fork 2
55 lines (49 loc) · 1.24 KB
/
Copy pathbuild.yml
File metadata and controls
55 lines (49 loc) · 1.24 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
51
52
53
54
55
name: psgraph-dev-build
on:
push:
branches: [ "dev" ]
paths-ignore:
- '**/README.md'
- '**/.gitignore'
- 'docs/**'
- '.devcontainer/**'
- '.github/**'
pull_request:
branches: [ "master" ]
paths-ignore:
- '**/README.md'
- '**/.gitignore'
- 'docs/**'
- '.devcontainer/**'
- '.github/**'
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
dotnet-version: ['9.0.x' ]
steps:
- uses: actions/checkout@v3
- name: Setup .NET Core SDK ${{ matrix.dotnet-version }}
uses: actions/setup-dotnet@v3
with:
dotnet-version: ${{ matrix.dotnet-version }}
- name: Install dependencies
run: dotnet restore
- name: Build
run: dotnet build --configuration Debug
- name: dotnet publish
run: dotnet publish -o "./PSQuickGraph"
- name: Test
run: dotnet test --verbosity normal
- name: Install PowerShell
uses: PSModule/install-powershell@v1
with:
Version: latest
- name: Pester tests
shell: pwsh
run: |
$PSVersionTable
Get-ChildItem
Invoke-Pester -Path ./PsGraph.Pester.Tests/