From dbc74ca5c12b28cffe223cbb9165e565d8acd09e Mon Sep 17 00:00:00 2001 From: Bela VanderVoort Date: Tue, 10 Oct 2023 08:30:37 -0500 Subject: [PATCH] Cleaning up action (#970) * this may read global.json * cleaning up the rest of the versions --------- Co-authored-by: Lasath Fernando --- .github/workflows/format_repositories.yml | 4 +--- .github/workflows/publish_nuget.yml | 12 ++---------- .github/workflows/validate_pull_request.yml | 18 +++--------------- 3 files changed, 6 insertions(+), 28 deletions(-) diff --git a/.github/workflows/format_repositories.yml b/.github/workflows/format_repositories.yml index b26e11fcb..5eb8823e8 100644 --- a/.github/workflows/format_repositories.yml +++ b/.github/workflows/format_repositories.yml @@ -12,9 +12,7 @@ jobs: - uses: actions/checkout@v2 with: path: csharpier - - uses: actions/setup-dotnet@v1 - with: - dotnet-version: '7.0.400' + - uses: actions/setup-dotnet@v3 - uses: actions/checkout@v2 with: repository: belav/csharpier-repos diff --git a/.github/workflows/publish_nuget.yml b/.github/workflows/publish_nuget.yml index 216e4317a..e0ddc3a9e 100644 --- a/.github/workflows/publish_nuget.yml +++ b/.github/workflows/publish_nuget.yml @@ -8,11 +8,7 @@ jobs: name: test steps: - uses: actions/checkout@v2 - - uses: actions/setup-dotnet@v1 - with: - dotnet-version: | - 7.0.400 - 6.0.300 + - uses: actions/setup-dotnet@v3 - run: > dotnet test Src/CSharpier.Tests/CSharpier.Tests.csproj --configuration Release @@ -29,11 +25,7 @@ jobs: NUGET_KEY: ${{secrets.NUGET_API_KEY}} steps: - uses: actions/checkout@v2 - - uses: actions/setup-dotnet@v1 - with: - dotnet-version: | - 7.0.400 - 6.0.300 + - uses: actions/setup-dotnet@v3 - name: Publish CSharpier.Core library on version change uses: alirezanet/publish-nuget@v3.0.4 with: diff --git a/.github/workflows/validate_pull_request.yml b/.github/workflows/validate_pull_request.yml index e3d148517..b69013ff1 100644 --- a/.github/workflows/validate_pull_request.yml +++ b/.github/workflows/validate_pull_request.yml @@ -8,11 +8,7 @@ jobs: name: Run Tests steps: - uses: actions/checkout@v2 - - uses: actions/setup-dotnet@v1 - with: - dotnet-version: | - 7.0.400 - 6.0.300 + - uses: actions/setup-dotnet@v3 - run: > dotnet test CSharpier.sln --configuration Release @@ -25,11 +21,7 @@ jobs: name: Check Formatting steps: - uses: actions/checkout@v2 - - uses: actions/setup-dotnet@v1 - with: - dotnet-version: | - 7.0.400 - 6.0.300 + - uses: actions/setup-dotnet@v3 - run: | dotnet tool restore dotnet csharpier . --check @@ -38,10 +30,6 @@ jobs: name: Build CSharpier.MSBuild steps: - uses: actions/checkout@v2 - - uses: actions/setup-dotnet@v1 - with: - dotnet-version: | - 7.0.400 - 6.0.300 + - uses: actions/setup-dotnet@v3 - run: | dotnet build Src/CSharpier.MsBuild/CSharpier.MsBuild.csproj