-
Notifications
You must be signed in to change notification settings - Fork 3
25 lines (21 loc) · 1021 Bytes
/
test.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
name: Test
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: 3.1.101
- name: Install dependencies
run: dotnet restore
- name: Decode certificate
run: echo -n $(echo ${{ secrets.ENCODED_SMOKE_TEST_CERTIFICATE }}) | base64 -d > $(echo ${GITHUB_WORKSPACE})/Bring_Digital_Signature_Key_Encipherment_Data_Encipherment.p12
- name: Set certificate path
run: dotnet user-secrets set Certificate:Path:Absolute $(echo ${GITHUB_WORKSPACE})/Bring_Digital_Signature_Key_Encipherment_Data_Encipherment.p12 --project Digipost.Signature.Api.Client.Core
- name: Set certificate password
run: dotnet user-secrets set Certificate:Password ${{ secrets.SMOKE_TEST_CERTIFICATE_PASSWORD }} --project Digipost.Signature.Api.Client.Core >/dev/null 2>&1
- name: Test
run: dotnet test --no-restore --verbosity normal