-
Notifications
You must be signed in to change notification settings - Fork 0
/
action.yml
43 lines (43 loc) · 1.38 KB
/
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
name: "Dotnet build"
description: "Realiza el Restore, build y test"
inputs:
github_username:
description: "usuario de github para autenticarse en los packages"
required: true
github_token:
description: "token del usuario con permisos de lectura en packages"
required: true
workdir_src:
description: "directorio donde se encuentra el project a compilar DEFAULT: ./"
required: false
default: './'
workdir_test:
description: "directorio donde se encuentra los test DEFAULT: ./"
required: false
default: './'
runs:
using: "composite"
steps:
- run: echo hi!, we working.
shell: bash
# Setup .NET Core SDK
- name: Setup .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: 5.x
- name: Add Github Package
shell: bash
run: |
dotnet nuget locals -c all
dotnet nuget add source https://nuget.pkg.github.com/architecture-it/index.json --name github -u ${{ inputs.github_username}} -p ${{ inputs.github_token }} --store-password-in-clear-text
# Run dotnet build and package
- name: dotnet build
shell: bash
run: |
dotnet restore
dotnet build
working-directory: ${{ inputs.workdir_src }}
- name: dotnet test
shell: bash
run: dotnet test
working-directory: ${{ inputs.workdir_test }}