Update gradle/actions action to v4.3.0 (#344) #793
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: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
workflow_dispatch: | |
inputs: | |
execution: | |
description: 'Type of execution' | |
required: true | |
default: 'Manual' | |
type: choice | |
options: | |
- Manual | |
jobs: | |
build: | |
strategy: | |
matrix: | |
module: [ core, framework ] | |
include: | |
- module: core | |
name: .Net Core | |
solution: dotnet-core/lowkey-vault-example-dotnet-core.sln | |
- module: framework | |
name: .Net Framework | |
solution: dotnet-framework/lowkey-vault-example-dotnet.sln | |
runs-on: windows-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
- name: Setup .NET | |
uses: actions/setup-dotnet@3951f0dfe7a07e2313ec93c75700083e2005cbab # v4 | |
with: | |
dotnet-version: 6.0.x | |
- name: Setup NuGet | |
uses: nuget/setup-nuget@323ab0502cd38fdc493335025a96c8fdb0edc71f # v2 | |
with: | |
nuget-version: '6.x' | |
- name: NuGet Restore ${{ matrix.name }} project | |
run: nuget restore ${{ matrix.solution }} | |
- name: Set up JDK 17 | |
uses: actions/setup-java@3a4f6e1af504cf6a31855fa899c6aa5355ba6c12 # v4.7.0 | |
with: | |
distribution: temurin | |
java-version: 17 | |
- name: Setup Gradle | |
uses: gradle/actions/setup-gradle@94baf225fe0a508e581a564467443d0e2379123b # v4.3.0 | |
- name: Download Lowkey Vault jar | |
run: ./gradlew clean download | |
- name: Build ${{ matrix.name }} Project | |
run: dotnet build ${{ matrix.solution }} --no-restore | |
- name: Test ${{ matrix.name }} Project | |
run: | | |
java -jar lowkey.jar & | |
Start-Sleep -s 10 | |
dotnet test ${{ matrix.solution }} --no-build --verbosity normal | |
Stop-Job -Name "Job1" |