From 6d0fd26473bcb4f8a6d6d55117e5ba2202dd1451 Mon Sep 17 00:00:00 2001 From: Dennis Dyall Date: Fri, 12 Apr 2024 12:20:00 +0200 Subject: [PATCH] Set up dotnet in dependent workflows --- .github/workflows/check-code-formatting.yml | 5 ++++- .github/workflows/test-and-cover.yml | 4 ++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/check-code-formatting.yml b/.github/workflows/check-code-formatting.yml index 7828ba65..7d1475e2 100644 --- a/.github/workflows/check-code-formatting.yml +++ b/.github/workflows/check-code-formatting.yml @@ -26,9 +26,12 @@ jobs: runs-on: windows-2019 steps: - # Checkout the local repository - uses: actions/checkout@v4 + - uses: actions/setup-dotnet@v4 + with: + global-json-file: global.json + - name: Add local NuGet repository run: dotnet nuget add source --username ${{ github.actor }} --password ${{ secrets.GITHUB_TOKEN }} --store-password-in-clear-text --name github "https://nuget.pkg.github.com/Yubico/index.json" diff --git a/.github/workflows/test-and-cover.yml b/.github/workflows/test-and-cover.yml index 39446ea1..cef5cd4e 100644 --- a/.github/workflows/test-and-cover.yml +++ b/.github/workflows/test-and-cover.yml @@ -31,6 +31,10 @@ jobs: steps: - uses: actions/checkout@v4 + + - uses: actions/setup-dotnet@v4 + with: + global-json-file: global.json - name: Add local NuGet repository run: dotnet nuget add source --username ${{ github.actor }} --password ${{ secrets.GITHUB_TOKEN }} --store-password-in-clear-text --name github "https://nuget.pkg.github.com/Yubico/index.json"