-
Notifications
You must be signed in to change notification settings - Fork 16
65 lines (53 loc) · 1.38 KB
/
tests.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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
name: Tests
on:
push:
branches:
- 'master'
tags-ignore:
- '**'
paths-ignore:
- '**.md'
pull_request:
branches:
- 'master'
tags-ignore:
- '**'
paths-ignore:
- '**.md'
workflow_dispatch:
inputs:
configuration:
description: "Build configuration"
required: false
default: "Release"
env:
# Path to the solution file relative to the root of the project.
SOLUTION_FILE_PATH: WorkshopTool.sln
BUILD_CONFIGURATION: ${{ github.event.inputs.configuration || 'Release' }}
BUILD_FRAMEWORK: net48
MANUAL_TRIGGER: ${{ github.event.workflow != null }}
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
name: Checkout Sources
id: checkout
with:
fetch-depth: 0
- uses: ./.github/actions/setup
name: Setup Environment
- uses: ./.github/actions/build
name: Build Solution
with:
solution: ${{env.SOLUTION_FILE_PATH}}
configuration: ${{env.BUILD_CONFIGURATION}}
- uses: ./.github/actions/test
name: Run Tests
with:
package: Tests\bin\${{env.BUILD_CONFIGURATION}}\${{env.BUILD_FRAMEWORK}}\Phoenix.WorkshopTool.Tests.dll
settings: Tests\tests.runsettings
- uses: ./.github/actions/changelog
name: Generate Changelog
with:
project-path: Directory.Build.props