-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathaction.yml
44 lines (36 loc) · 984 Bytes
/
action.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
name: '.NET Build and Test'
description: 'A GitHub Action to build and test .NET applications'
author: 'Your Name'
branding:
icon: 'check-circle' # Choose an icon from GitHub's supported icons
color: 'blue'
inputs:
dotnet-version:
description: 'The version of .NET SDK to use'
required: true
default: '8.0.x'
outputs:
build-status:
description: 'The status of the build process'
runs:
using: "composite"
steps:
- name: Checkout Code
uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: ${{ inputs.dotnet-version }}
- name: Restore Dependencies
run: dotnet restore
shell: bash
- name: Build Solution
run: dotnet build --configuration Release
shell: bash
- name: Run Tests
run: dotnet test
shell: bash
- name: Set Output
id: build-status
run: echo "::set-output name=build-status::success"
shell: bash