LastPass: support for Duo V4 to V1 redirect (fixes #124) #108
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 build, test and release | |
on: | |
push: | |
branches: | |
- master | |
tags: | |
- v* | |
pull_request: | |
branches: | |
- master | |
jobs: | |
Build: | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu-latest, windows-latest, macos-latest] | |
framework: [net6] | |
include: | |
- os: windows-latest | |
framework: net48 | |
- os: windows-latest | |
framework: net472 | |
- os: ubuntu-latest | |
framework: mono | |
- os: macos-latest | |
framework: mono | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Setup .NET | |
if: matrix.framework == 'net6' | |
uses: actions/setup-dotnet@v2 | |
with: | |
dotnet-version: '6.0.x' | |
- name: Install Mono on Linux | |
if: matrix.framework == 'mono' && matrix.os == 'ubuntu-latest' | |
run: | | |
sudo apt-get install gnupg ca-certificates | |
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF | |
sudo apt install apt-transport-https | |
sudo apt update | |
sudo apt install mono-devel | |
- name: .NET info | |
run: | | |
dotnet --info | |
dotnet --list-sdks | |
dotnet --list-runtimes | |
- name: Mono info | |
if: matrix.framework == 'mono' | |
run: mono --version | |
# TODO: Figure out how to export the TRX report on Mono | |
- name: Test mono | |
if: matrix.framework == 'mono' | |
run: | | |
dotnet build --configuration Release --framework net48 | |
mono ~/.nuget/packages/xunit.runner.console/2.5.0/tools/net472/xunit.console.exe test/bin/Release/net48/PasswordManagerAccess.Test.dll | |
- name: Test ${{ matrix.framework }} | |
if: matrix.framework != 'mono' | |
run: dotnet test --configuration Release --framework ${{ matrix.framework }} --logger "trx;LogFileName=test-results.trx" | |
- name: Test Report | |
uses: dorny/test-reporter@v1 | |
if: (success() || failure()) && matrix.framework != 'mono' | |
with: | |
name: Test (${{ matrix.os }}, ${{ matrix.framework }}) | |
path: test/TestResults/test-results.trx | |
reporter: dotnet-trx | |
Release: | |
needs: Build | |
if: startsWith(github.ref, 'refs/tags/v') | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Build | |
run: ci/make-nuget-package.sh ${{ github.ref_name }} | |
- name: Push | |
run: ci/push-package-to-nuget.sh | |
env: | |
NUGET_API_KEY: ${{ secrets.NUGET_API_KEY }} | |
- name: Release | |
uses: softprops/action-gh-release@v1 | |
with: | |
files: ${{ github.workspace }}/**/*.nupkg | |
tag_name: ${{ github.ref_name }} | |
generate_release_notes: true |