-
Notifications
You must be signed in to change notification settings - Fork 0
63 lines (50 loc) · 1.31 KB
/
fsharp-validations.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
name: FSharp Validations CI
on:
push:
tags:
- 'v*'
branches:
- main
permissions:
checks: write
pull-requests: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Install .NET Core SDK
uses: actions/setup-dotnet@v1
with:
dotnet-version: '9.x'
- name: Install GitVersion
uses: gittools/actions/gitversion/[email protected]
with:
versionSpec: '6.0.0'
- name: Determine Version
uses: gittools/actions/gitversion/[email protected]
with:
useConfigFile: true
- name: Run GitVersion
run: dotnet gitversion /output buildserver
- name: Set version
run: |
echo "# ${{ env.majorMinorPatch }}" >> $GITHUB_STEP_SUMMARY
- name: Restore dependencies
run: dotnet restore src/
- name: Build
run: dotnet build src/ -c Release --no-restore
- name: Test
run: |
dotnet test src/ \
--verbosity normal --no-build --no-restore \
--configuration Release \
--logger "trx;LogFileName=TestResults.trx"
- name: Publish test results
uses: EnricoMi/publish-unit-test-result-action@v2
with:
files: '**/*.trx'
action_fail: true