From 962fd54ac715b4c53dc709feafcd2d65201fd435 Mon Sep 17 00:00:00 2001 From: Mitchel Sellers Date: Sat, 12 Nov 2022 02:05:40 -0600 Subject: [PATCH] Updated all CI Elements --- .github/dependabot.yml | 11 +++++++++++ .github/workflows/ci-build.yml | 20 +++++++++++--------- .github/workflows/release-build.yml | 6 +++--- 3 files changed, 25 insertions(+), 12 deletions(-) create mode 100644 .github/dependabot.yml diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..90e05c4 --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,11 @@ +# To get started with Dependabot version updates, you'll need to specify which +# package ecosystems to update and where the package manifests are located. +# Please see the documentation for all configuration options: +# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates + +version: 2 +updates: + - package-ecosystem: "github-actions" # See documentation for possible values + directory: "/" # Location of package manifests + schedule: + interval: "weekly" diff --git a/.github/workflows/ci-build.yml b/.github/workflows/ci-build.yml index fc53ecc..978261f 100644 --- a/.github/workflows/ci-build.yml +++ b/.github/workflows/ci-build.yml @@ -14,12 +14,12 @@ jobs: env: solution-path: './src/NetCore.Utilities.Spreadsheet.sln' steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 with: fetch-depth: 0 - name: Ensure .NET Installed - uses: actions/setup-dotnet@v1 + uses: actions/setup-dotnet@v3 with: dotnet-version: 6.0.x @@ -28,7 +28,7 @@ jobs: - name: Determine Version id: gitversion - uses: gittools/actions/gitversion/execute@v0.9.7 + uses: gittools/actions/gitversion/execute@v0.9.15 with: useConfigFile: true @@ -40,27 +40,29 @@ jobs: run: dotnet test "${{ env.solution-path }}" --no-build --configuration Release code-quality: + if: github.actor != 'dependabot[bot]' runs-on: windows-latest name: Analyze Code Quality env: solution-path: './src/NetCore.Utilities.Spreadsheet.sln' steps: - name: Set up JDK 11 - uses: actions/setup-java@v1 + uses: actions/setup-java@v3 with: - java-version: 1.11 - - uses: actions/checkout@v2 + java-version: 11 + distribution: zulu + - uses: actions/checkout@v3 with: fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis - name: Cache SonarCloud packages - uses: actions/cache@v1 + uses: actions/cache@v3.0.11 with: path: ~\sonar\cache key: ${{ runner.os }}-sonar restore-keys: ${{ runner.os }}-sonar - name: Cache SonarCloud scanner id: cache-sonar-scanner - uses: actions/cache@v1 + uses: actions/cache@v3.0.11 with: path: .\.sonar\scanner key: ${{ runner.os }}-sonar-scanner @@ -77,7 +79,7 @@ jobs: - name: Determine Version id: gitversion - uses: gittools/actions/gitversion/execute@v0.9.7 + uses: gittools/actions/gitversion/execute@v0.9.15 with: useConfigFile: true diff --git a/.github/workflows/release-build.yml b/.github/workflows/release-build.yml index c9b074f..0a7f226 100644 --- a/.github/workflows/release-build.yml +++ b/.github/workflows/release-build.yml @@ -13,12 +13,12 @@ jobs: env: solution-path: './src/NetCore.Utilities.Spreadsheet.sln' steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 with: fetch-depth: 0 - name: Ensure .NET Installed - uses: actions/setup-dotnet@v1 + uses: actions/setup-dotnet@v3 with: dotnet-version: 6.0.x @@ -27,7 +27,7 @@ jobs: - name: Determine Version id: gitversion - uses: gittools/actions/gitversion/execute@v0.9.7 + uses: gittools/actions/gitversion/execute@v0.9.15 with: useConfigFile: true