diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml deleted file mode 100644 index d3441d1..0000000 --- a/.github/workflows/codeql-analysis.yml +++ /dev/null @@ -1,67 +0,0 @@ -# For most projects, this workflow file will not need changing; you simply need -# to commit it to your repository. -# -# You may wish to alter this file to override the set of languages analyzed, -# or to provide custom queries or build logic. -# -# ******** NOTE ******** -# We have attempted to detect the languages in your repository. Please check -# the `language` matrix defined below to confirm you have the correct set of -# supported CodeQL languages. -# -name: "CodeQL" - -on: - push: - branches: [ master ] - pull_request: - # The branches below must be a subset of the branches above - branches: [ master ] - schedule: - - cron: '20 1 * * 2' - -jobs: - analyze: - name: Analyze - runs-on: ubuntu-latest - - strategy: - fail-fast: false - matrix: - language: [ 'csharp' ] - # CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python' ] - # Learn more: - # https://docs.github.com/en/free-pro-team@latest/github/finding-security-vulnerabilities-and-errors-in-your-code/configuring-code-scanning#changing-the-languages-that-are-analyzed - - steps: - - name: Checkout repository - uses: actions/checkout@v2 - - # Initializes the CodeQL tools for scanning. - - name: Initialize CodeQL - uses: github/codeql-action/init@v1 - with: - languages: ${{ matrix.language }} - # If you wish to specify custom queries, you can do so here or in a config file. - # By default, queries listed here will override any specified in a config file. - # Prefix the list here with "+" to use these queries and those in the config file. - # queries: ./path/to/local/query, your-org/your-repo/queries@main - - # Autobuild attempts to build any compiled languages (C/C++, C#, or Java). - # If this step fails, then you should remove it and run the build manually (see below) - - name: Autobuild - uses: github/codeql-action/autobuild@v1 - - # â„šī¸ Command-line programs to run using the OS shell. - # 📚 https://git.io/JvXDl - - # âœī¸ If the Autobuild fails above, remove it and uncomment the following three lines - # and modify them (or add more) to build your code if your project - # uses a compiled language - - #- run: | - # make bootstrap - # make release - - - name: Perform CodeQL Analysis - uses: github/codeql-action/analyze@v1 diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index e15e9b0..c13d98b 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -1,4 +1,4 @@ -name: .NET +name: dotnet on: push: @@ -8,13 +8,11 @@ on: jobs: build: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v7 - name: Setup .NET - uses: actions/setup-dotnet@v1 + uses: actions/setup-dotnet@v6 with: dotnet-version: 10.0.x - name: Restore dependencies diff --git a/.github/workflows/nuget.yml b/.github/workflows/nuget.yml index e98c4aa..3e46fcb 100644 --- a/.github/workflows/nuget.yml +++ b/.github/workflows/nuget.yml @@ -1,28 +1,30 @@ -name: Nuget +name: nuget on: - workflow_run: - workflows: [".NET"] - branches: [ master ] - types: - - completed + release: + types: [ published ] jobs: - build: - + publish: runs-on: ubuntu-latest - + permissions: + id-token: write steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v7 - name: Setup .NET - uses: actions/setup-dotnet@v1 + uses: actions/setup-dotnet@v6 with: dotnet-version: 10.0.x - name: Restore dependencies run: dotnet restore - name: Pack - run: dotnet pack --no-restore -c Release --output package - - name: Push + run: dotnet pack --no-restore -c Release --output package --version ${GITHUB_REF_NAME#v} -p:PackageReleaseNotes="${{ github.event.release.body }}" + - name: NuGet login + uses: NuGet/login@v1 + id: login + with: + user: ${{ secrets.NUGET_USER }} + - name: NuGet Push env: NUGET_KEY: ${{ secrets.NUGET_KEY }} - run: dotnet nuget push ./package/*.nupkg --source https://api.nuget.org/v3/index.json --api-key "$NUGET_KEY" --skip-duplicate + run: dotnet nuget push ./package/*.nupkg --source https://api.nuget.org/v3/index.json --api-key ${{ steps.login.outputs.NUGET_API_KEY }} --skip-duplicate diff --git a/src/ReSharperToCodeClimate/ReSharperToCodeClimate.csproj b/src/ReSharperToCodeClimate/ReSharperToCodeClimate.csproj index d9bd399..06f78bf 100644 --- a/src/ReSharperToCodeClimate/ReSharperToCodeClimate.csproj +++ b/src/ReSharperToCodeClimate/ReSharperToCodeClimate.csproj @@ -2,16 +2,14 @@ Exe - netcoreapp3.1;net6.0;net7.0;net8.0;net9.0;net10.0 + net8.0;net9.0;net10.0 latest - 1.0.14 ReSharperToCodeClimate resharper-to-codeclimate true resharper-to-codeclimate Thomas Weston Converts a ReSharper inspectcode xml report file to a Code Climate json report file. - Added support for .NET 10.0 https://github.com/moly/resharper-to-codeclimate https://github.com/moly/resharper-to-codeclimate resharper codeclimate gitlab diff --git a/src/ReSharperToCodeClimateTest/ReSharperToCodeClimateTest.csproj b/src/ReSharperToCodeClimateTest/ReSharperToCodeClimateTest.csproj index 9e4aa71..a4f8ad7 100644 --- a/src/ReSharperToCodeClimateTest/ReSharperToCodeClimateTest.csproj +++ b/src/ReSharperToCodeClimateTest/ReSharperToCodeClimateTest.csproj @@ -4,15 +4,14 @@ net10.0 enable enable - false - - - - + + + +