Coder Social home page Coder Social logo

lastlink / dotnet-ci-pipelines Goto Github PK

View Code? Open in Web Editor NEW
20.0 3.0 14.0 275 KB

dotnet ci cd pipelines for github, azure devops, gitlab, bitbucket, and etc.

License: MIT License

C# 93.55% Batchfile 3.24% Shell 3.21%
hacktoberfest github-actions dotnet-core azure-devops bitbucket-pipelines gitlab-ci service-container

dotnet-ci-pipelines's Introduction

DOTNET CORE CI PIPELINE EXAMPLE:

Goal to have dotnet core c# example pipelines for major git source control dev ops including github, azure devops, gitlab, bitbucket, and etc. Should auto run only on a new pull request, show test results in native ui per website, code coverage, and some additional manual steps running code quality analysis. Badge support native is also nice or from https://shields.io/category/build. Also will try service containers and database unit tests. Originally off of gitlab-ci-example-dotnetcore.

Contribution

  • Please do a pull request to the proper source control pipeline that you are trying to update.

TOC

  • limits 2,000 (per month) to 20 concurrent jobs support windows, ubuntu, mac
    • doesn't currently support retry and max timeout although will cancel when limit reached.
  • Badges - workflow
  • api docs - docfx html only
  • [!] Tests - no display just logs and work flow
  • CodeClimate issues with non npm and docker in docker
  • resharper cli - no manual triggers supports
  • security dependency scan - snyk
  • artifacts
  • Services mysql, postgres, and mssql work like a charm
  • [] release
    • [] obfuscators
  • limits 50 minutes per month, support docker images
  • Badges
  • api docs - docfx html only
  • Tests - working display
    • junit works fine
    • print out code coverage in log, not natively supported
  • [!] CodeClimate - docker in docker throwing an error
    • docker: Error response from daemon: authorization denied by plugin pipelines: -v only supports $BITBUCKET_CLONE_DIR and its subdirectories.
  • resharper cli
  • artifacts only last 12 hrs are downloaded in the .tar.gz format, could not figure out the curl method
  • Services mysql and postgres work
    • mssql starts up, gives lots of details on docker image running, not enough detail for why test was failing
  • limits 1,800 minutes per month on private projects. $40 a month for unlimited minutes.
  • Badges?
    • build
  • api docs - docfx html only (pdf works locally, maybe self hosted runner)
  • Tests - working display
  • CodeClimate 3m
  • resharper cli
  • artifacts
  • Service Containers mysql and postgress work fine
    • mssql fails to connect after container should be initialized successfully. (only initializes for linux agents)
    • really want mssql to work for ease w/ some integrated testing and pre deploy checks. tracking progress in stackoverflow and developercommunity.visualstudio.com

[ ] Gitlab pipeline status coverage status Quality Gate Status Code Smells Technical Debt Coverage Lines of Code

  • limits 400 2,000 minutes per month per group or user. $10 to buy 1,000 extra minutes expires end of year.
  • Badges
    • pipeline
    • coverage
      • build in
      • coverlet
        • [] badge_branchcoverage badge_branchcoverage
        • [] badge_combined badge_branchcoverage
        • [] badge_linecoverage badge_branchcoverage
    • build per job?
  • api docs - docfx
  • Tests - Junit
  • Coverage - coverlet
  • Services - mysql, postgres, mssql all work
    • mssql occasionally fails to connect and step just needs to be rerun.
  • Code Quality
    • resharper clis
      • inspectcode 1min
      • dupfinder 1min
    • CodeClimate (complexity & duplication) 10min+
  • artifacts
  • pricing free up to 5 users. Cloud Build limits first 120 minutes a day free. $30 per 1000 priced per minute.
  • used solely for pushing docker builds to a registry and deploying. While in theory you could run unit tests in a docker image it is recommended to use an alternative for unit tests

Other

Database

  • dotnet ef migrations add InitialMigrations --project ../MyProject.Repository/MyProject.Repository.csproj --startup-project ./MyProject.Api.csproj
  • dotnet ef migrations remove
  • dotnet ef database update --project ../MyProject.Repository/MyProject.Repository.csproj --startup-project ./MyProject.Api.csproj

dotnet-ci-pipelines's People

Contributors

lastlink avatar snyk-bot avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

dotnet-ci-pipelines's Issues

ci pipeline failure

hi team ,
our ci pipeline failing suddenly with below error please some help us!
image

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.