-
Notifications
You must be signed in to change notification settings - Fork 6
34 lines (26 loc) · 939 Bytes
/
ci-test.yml
File metadata and controls
34 lines (26 loc) · 939 Bytes
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
name: ci-test
on:
push:
branches: [ "main" ]
pull_request:
types: [opened, reopened]
jobs:
build:
runs-on: windows-latest
env:
Configuration: Release
Version: ${{ vars.MAJORVERSION }}.${{ vars.MINORVERSION }}.${{ github.run_number }}.${{ vars.REVISION }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup
uses: actions/setup-dotnet@v4
with:
dotnet-version: 9
#dotnet-quality: 'preview'
- name: Restore
run: dotnet restore FizzCode.EtLast.sln /p:Configuration=${{ env.Configuration }} --verbosity normal
- name: Build
run: dotnet build FizzCode.EtLast.sln --configuration ${{ env.Configuration }} --no-restore /p:Version=${{ env.Version }} --verbosity normal
- name: Test
run: dotnet test FizzCode.EtLast.sln --configuration ${{ env.Configuration }} --no-build --verbosity normal