-
Notifications
You must be signed in to change notification settings - Fork 9
50 lines (46 loc) · 1.12 KB
/
build.yml
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: build
on:
push:
branches:
- master
pull_request:
branches:
- master
env:
DOTNET_CLI_TELEMETRY_OPTOUT: 1
POWERSHELL_TELEMETRY_OPTOUT: 1
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: 1
DOTNET_NOLOGO: true
defaults:
run:
shell: pwsh
jobs:
build:
name: Build and Test
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ ubuntu-latest, macos-latest, windows-latest ]
steps:
- name: Check Version
run: $PSVersionTable
- uses: actions/checkout@v1
- name: Test and Build
run: ./build.ps1 -Force -Configuration Release
- uses: actions/upload-artifact@v1
if: matrix.os == 'windows-latest'
with:
name: ClassExplorer
path: ./Release/ClassExplorer
- uses: actions/upload-artifact@v1
if: matrix.os != 'windows-latest'
with:
name: ClassExplorer-${{ matrix.os }}
path: ./Release/ClassExplorer
- name: Upload Test Results
if: always()
uses: actions/upload-artifact@v2
with:
name: Unit Test Results (${{ matrix.os }})
path: ./TestResults/Pester.xml