From 6019d4a8a7ffd21a6a354aca43b03a552890adae Mon Sep 17 00:00:00 2001 From: Rocket Understudy <33589210+rsg-bot@users.noreply.github.com> Date: Wed, 1 May 2024 19:24:46 -0400 Subject: [PATCH] Automatically linting code --- .github/workflows/ci.yml | 9 ++++++--- .github/workflows/lint.yml | 5 ++++- .nuke/build.schema.json | 2 ++ 3 files changed, 12 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index dd42d4d22..5e9965504 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -108,14 +108,17 @@ jobs: uses: actions/setup-dotnet@v4.0.0 with: dotnet-version: '8.0.x' - - name: 🎁 dotnet tool restore + - name: 🚒 dotnet workload restore + run: | + dotnet workload restore + - name: ⚒️ dotnet tool restore run: | dotnet tool restore - name: 🎁 Restore id: restore run: | dotnet nuke Restore --skip - - name: ⚙ Build + - name: ⚙️ Build id: build run: | dotnet nuke Build --skip @@ -133,7 +136,7 @@ jobs: with: name: 'coverage' path: 'coverage/' - - name: 🐿 Publish Coverage + - name: 📫 Publish Coverage if: (github.event_name != 'pull_request' && github.event_name != 'pull_request_target') || ((github.event_name == 'pull_request' || github.event_name == 'pull_request_target') && github.event.pull_request.user.login != 'renovate[bot]' && github.event.pull_request.user.login != 'dependabot[bot]') uses: codecov/codecov-action@v4.3.1 with: diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 4c2584987..0d06915f0 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -67,7 +67,10 @@ jobs: uses: actions/setup-dotnet@v4 with: dotnet-version: '8.0.x' - - name: 🎁 dotnet tool restore + - name: 🚒 dotnet workload restore + run: | + dotnet workload restore + - name: ⚒️ dotnet tool restore run: | dotnet tool restore - name: Regenerate Build Configurations diff --git a/.nuke/build.schema.json b/.nuke/build.schema.json index a29932357..471b39fe8 100644 --- a/.nuke/build.schema.json +++ b/.nuke/build.schema.json @@ -95,6 +95,7 @@ "Default", "DotNetFormat", "DotnetToolRestore", + "DotnetWorkloadRestore", "GenerateCodeCoverageBadges", "GenerateCodeCoverageReport", "GenerateCodeCoverageReportCobertura", @@ -132,6 +133,7 @@ "Default", "DotNetFormat", "DotnetToolRestore", + "DotnetWorkloadRestore", "GenerateCodeCoverageBadges", "GenerateCodeCoverageReport", "GenerateCodeCoverageReportCobertura",