Skip to content
This repository was archived by the owner on Dec 4, 2025. It is now read-only.

Commit aa6a6b8

Browse files
agukasmmrts
authored andcommitted
feat: Implement example service using ASP.NET Core
WE2-419 Signed-off-by: Mati Agukas [email protected]
1 parent c528a1f commit aa6a6b8

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

47 files changed

+2978
-2
lines changed

.github/workflows/dotnet-build.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: Dotnet build
2+
3+
on: [ push, pull_request ]
4+
5+
jobs:
6+
build:
7+
runs-on: ubuntu-latest
8+
9+
steps:
10+
- uses: actions/checkout@v2
11+
12+
- name: Setup dotnet
13+
uses: actions/setup-dotnet@v1
14+
with:
15+
dotnet-version: 6.0.x # SDK Version to use.
16+
17+
- name: Cache Nuget packages
18+
uses: actions/cache@v2
19+
with:
20+
path: ~/.nuget/packages
21+
# Look to see if there is a cache hit for the corresponding requirements file
22+
key: ${{ runner.os }}-nuget-${{ hashFiles('**/packages.lock.json') }}
23+
restore-keys: ${{ runner.os }}-nuget
24+
25+
- name: Install dependencies
26+
run: dotnet restore src/WebEid.AspNetCore.Example.sln --source "https://gitlab.com/api/v4/projects/35362906/packages/nuget/index.json" --source "https://api.nuget.org/v3/index.json"
27+
28+
- name: Download digidoc
29+
run: wget https://gitlab.com/api/v4/projects/35362906/packages/generic/digidoc/1.0.0/digidoc.zip
30+
31+
- name: Unzip digidoc
32+
uses: montudor/action-zip@v1
33+
with:
34+
args: unzip -qq digidoc.zip -d src/WebEid.AspNetCore.Example/DigiDoc
35+
36+
- name: Build
37+
run: dotnet build --configuration Release --no-restore src/WebEid.AspNetCore.Example.sln --verbosity normal
38+
39+
- name: Test
40+
run: dotnet test --no-restore --verbosity normal src/WebEid.AspNetCore.Example.sln

0 commit comments

Comments
 (0)