Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Modernise build and migrate to GitHub Actions for CI #2775

Merged
merged 28 commits into from
Apr 13, 2024

Commits on Apr 3, 2024

  1. Configure Visual Studio Code extensions

    Recommend extensions for developing in Visual Studio Code.
    martincostello committed Apr 3, 2024
    Configuration menu
    Copy the full SHA
    1a2b67b View commit details
    Browse the repository at this point in the history
  2. Fix/suppress build warnings

    - Suppress obsolete warnings on Swashbuckle types.
    - Fix some `#if define`s to use "or greater".
    - Fix xunit analyser warnings.
    martincostello committed Apr 3, 2024
    Configuration menu
    Copy the full SHA
    fb677eb View commit details
    Browse the repository at this point in the history
  3. Run npm audit fix

    Run `npm audit fix` to resolve warnings about vulnerable dependencies.
    martincostello committed Apr 3, 2024
    Configuration menu
    Copy the full SHA
    ea6f2d5 View commit details
    Browse the repository at this point in the history
  4. Delete build.txt

    Remove build.txt which presumably was committed by mistake.
    martincostello committed Apr 3, 2024
    Configuration menu
    Copy the full SHA
    d3ec037 View commit details
    Browse the repository at this point in the history
  5. Modernise build

    - Use .NET 8 SDK as .NET 7 goes out of support in May 2024.
    - Support C# 12 in all projects.
    - Bump Newtonsoft.Json and xunit to latest versions.
    - Use NuGet central package version management.
    - Enable package source mappings.
    - Configure recommended properties for deterministic builds.
    - Configure recommended properties for NuGet package publishing.
    - Use artifacts output.
    - Add code coverage.
    - Prepare for GitHub Actions CI.
    - Temporarily suppress warnings about out-of-support TFMs and NuGet package dependency vulnerabilities.
    - Simplify target frameworks when only one is present.
    - Update some terminology/typos.
    martincostello committed Apr 3, 2024
    Configuration menu
    Copy the full SHA
    3d29509 View commit details
    Browse the repository at this point in the history
  6. Remove licenseUrl

    Remove `licenseUrl` as it is mutually exclusive with `licenseExpression`.
    martincostello committed Apr 3, 2024
    Configuration menu
    Copy the full SHA
    dc51910 View commit details
    Browse the repository at this point in the history
  7. Add GitHub Actions workflows

    - Add workflow to build, pack, test and publish the project.
    - Add workflow to run CodeQL.
    - Add workflow to lint GitHub Actions workflows.
    - Add workflow to generate OSSF scorecard.
    - Add workflow to update the .NET SDK.
    - Add workflow to prune stale GitHub issues and PRs.
    - Add simple build script to share between CI and local development.
    - Remove AppVeyor CI.
    martincostello committed Apr 3, 2024
    Configuration menu
    Copy the full SHA
    ff8f4be View commit details
    Browse the repository at this point in the history
  8. Configure dependabot

    Enable dependabot for GitHub Actions and NuGet packages.
    martincostello committed Apr 3, 2024
    Configuration menu
    Copy the full SHA
    16f8201 View commit details
    Browse the repository at this point in the history
  9. Fix report path

    Fix coverage reports being collected from the wrong location.
    martincostello committed Apr 3, 2024
    Configuration menu
    Copy the full SHA
    b634341 View commit details
    Browse the repository at this point in the history
  10. Set executable bit

    Set the executable bit for Linux and macOS.
    martincostello committed Apr 3, 2024
    Configuration menu
    Copy the full SHA
    39d88ea View commit details
    Browse the repository at this point in the history
  11. Fix DotNetSwaggerPath

    Fix `DotNetSwaggerPath` being incorrect with artifacts output in use.
    martincostello committed Apr 3, 2024
    Configuration menu
    Copy the full SHA
    030c3af View commit details
    Browse the repository at this point in the history
  12. Fix permissions

    Fix incorrect workflow permissions when using `GITHUB_TOKEN`.
    martincostello committed Apr 3, 2024
    Configuration menu
    Copy the full SHA
    baf8254 View commit details
    Browse the repository at this point in the history
  13. Change PR build version suffix

    Change to `pr.<PR>.<RUN>`.
    martincostello committed Apr 3, 2024
    Configuration menu
    Copy the full SHA
    16c4cc9 View commit details
    Browse the repository at this point in the history
  14. Fix paths used with exec

    - Ensure values are quoted.
    - Use absolute paths.
    martincostello committed Apr 3, 2024
    Configuration menu
    Copy the full SHA
    7f0b0e6 View commit details
    Browse the repository at this point in the history
  15. Remove XML file

    Remove checked-in XML file and use the file from the build output.
    martincostello committed Apr 3, 2024
    Configuration menu
    Copy the full SHA
    11e6ce7 View commit details
    Browse the repository at this point in the history
  16. Another attempt to fix paths

    Try to fix the path to dotnet-swagger in CI.
    martincostello committed Apr 3, 2024
    Configuration menu
    Copy the full SHA
    33181c2 View commit details
    Browse the repository at this point in the history
  17. Add Swashbuckle.AspNetCore.Cli reference

    Add an explicit project reference on Swashbuckle.AspNetCore.Cli to ensure that this project depends on it.
    martincostello committed Apr 3, 2024
    Configuration menu
    Copy the full SHA
    405d4f1 View commit details
    Browse the repository at this point in the history
  18. Lowercase Configuration

    Need to match the file system casing for Linux and macOS.
    martincostello committed Apr 3, 2024
    Configuration menu
    Copy the full SHA
    e201606 View commit details
    Browse the repository at this point in the history
  19. Fix condition

    Include projects ending in `Tests` too.
    martincostello committed Apr 3, 2024
    Configuration menu
    Copy the full SHA
    4e72a0b View commit details
    Browse the repository at this point in the history
  20. Tighten coverage scope

    Just include Swashbuckle assemblies in coverage, so exclude all the test websites etc.
    martincostello committed Apr 3, 2024
    Configuration menu
    Copy the full SHA
    03c79b1 View commit details
    Browse the repository at this point in the history
  21. Remove SDK setup steps

    - Attempt to fix the workflow by removing steps to setup the .NET SDK and use the NuGet cache.
    - Fix name to match file.
    martincostello committed Apr 3, 2024
    Configuration menu
    Copy the full SHA
    d324b8e View commit details
    Browse the repository at this point in the history
  22. Re-add setup-dotnet

    Add the step to install the .NET SDK back.
    martincostello committed Apr 3, 2024
    Configuration menu
    Copy the full SHA
    54daca9 View commit details
    Browse the repository at this point in the history
  23. Change syntax

    Match the syntax with another repo where the workflow is definitely doing the right thing.
    martincostello committed Apr 3, 2024
    Configuration menu
    Copy the full SHA
    c327787 View commit details
    Browse the repository at this point in the history
  24. Try Windows

    Try running on Windows.
    martincostello committed Apr 3, 2024
    Configuration menu
    Copy the full SHA
    31f9fec View commit details
    Browse the repository at this point in the history
  25. Try manual build

    Switch back to Ubuntu and manually build the solution.
    martincostello committed Apr 3, 2024
    Configuration menu
    Copy the full SHA
    09fedd0 View commit details
    Browse the repository at this point in the history
  26. Rename step

    Rename step to reflect what it's doing.
    martincostello committed Apr 3, 2024
    Configuration menu
    Copy the full SHA
    703d2b8 View commit details
    Browse the repository at this point in the history

Commits on Apr 10, 2024

  1. Simplify condition

    `String.Copy()` isn't needed.
    martincostello committed Apr 10, 2024
    Configuration menu
    Copy the full SHA
    5345377 View commit details
    Browse the repository at this point in the history

Commits on Apr 12, 2024

  1. Bump version

    Bump patch version so the version is greater than the current stable release.
    martincostello committed Apr 12, 2024
    Configuration menu
    Copy the full SHA
    5e2ea49 View commit details
    Browse the repository at this point in the history