Code cleanup #217
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: .NET | |
on: | |
pull_request: | |
branches: [ main ] | |
types: [ opened, synchronize, closed ] | |
push: | |
paths-ignore: | |
- README.md | |
- CHANGELOG.md # Should never be edited anyway | |
- .gitignore | |
- .github/** | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Setup .NET | |
uses: actions/setup-dotnet@v1 | |
with: | |
dotnet-version: 8.x | |
- name: Restore dependencies | |
run: dotnet restore | |
working-directory: src | |
- name: Build | |
run: dotnet build --no-restore | |
working-directory: src | |
- name: Restore dependencies | |
run: dotnet restore | |
working-directory: samples/1_SimpleSPWebApp | |
- name: Build | |
run: dotnet build --no-restore | |
working-directory: samples/1_SimpleSPWebApp | |
- name: Run SPID.AspNetCore.WebApp | |
working-directory: samples/1_SimpleSPWebApp/SPID.AspNetCore.WebApp | |
run: dotnet run & | |
- name: Update apt repo | |
run: sudo apt update | |
- name: Install dependencies | |
run: sudo apt install -y libxml2-dev libxmlsec1-dev libxmlsec1-openssl xmlsec1 python3-pip && pip install cryptography==38.0.4 | |
- name: Pip list | |
run: pip list | |
- name: Install spid-sp-test | |
run: pip install spid-sp-test --upgrade --no-cache | |
- name: Test Requests/Responses with spid-sp-test | |
run: spid_sp_test --metadata-url https://localhost:5001/metadata-spid/metadata.xml --authn-url https://localhost:5001/home/login?idpname=SpidSpTest --extra --debug ERROR --profile spid-sp-public -tr | |
- name: Test Metadata spid-sp-public with spid-sp-test | |
run: spid_sp_test --metadata-url https://localhost:5001/metadata-spid/metadata.xml --extra --debug ERROR --profile spid-sp-public | |
- name: Test Metadata spid-sp-private with spid-sp-test | |
run: spid_sp_test --metadata-url https://localhost:5001/metadata-spid/metadata1.xml --extra --debug ERROR --profile spid-sp-private | |
- name: Test Metadata spid-sp-ag-public-full with spid-sp-test | |
run: spid_sp_test --metadata-url https://localhost:5001/metadata-spid/metadata2.xml --extra --debug ERROR --profile spid-sp-ag-public-full | |
- name: Test Metadata spid-sp-ag-public-lite with spid-sp-test | |
run: spid_sp_test --metadata-url https://localhost:5001/metadata-spid/metadata4.xml --extra --debug ERROR --profile spid-sp-ag-public-lite | |
- name: Test Metadata spid-sp-op-public-full with spid-sp-test | |
run: spid_sp_test --metadata-url https://localhost:5001/metadata-spid/metadata6.xml --extra --debug ERROR --profile spid-sp-op-public-full | |
- name: Test Metadata spid-sp-op-public-lite with spid-sp-test | |
run: spid_sp_test --metadata-url https://localhost:5001/metadata-spid/metadata7.xml --extra --debug ERROR --profile spid-sp-op-public-lite |