All Projects → Redfern → dot-net-core-pre-push-checks

Redfern / dot-net-core-pre-push-checks

Licence: other
A dot net core pre push checks hook

Programming Languages

shell
77523 projects

Projects that are alternatives of or similar to dot-net-core-pre-push-checks

Dasblog Core
The original DasBlog reimagined with ASP.NET Core
Stars: ✭ 252 (+375.47%)
Mutual labels:  dotnetcore
abp plugin with ui
Demo of using multiple angular applications and aspnetboilerplate to create plugin application
Stars: ✭ 17 (-67.92%)
Mutual labels:  dotnetcore
PATCH
The PATCH repository for issues tracking, wiki and shared material.
Stars: ✭ 34 (-35.85%)
Mutual labels:  dotnetcore
Smart-Net-Data-Accessor
2-way/outside SQL build-time data accessor generator library.
Stars: ✭ 22 (-58.49%)
Mutual labels:  dotnetcore
AsteroidsWasm
Collection of applications based on a single C# .NET Standard project running in: Blazor Client (WebAssembly), Blazor Server, Electron, WPF, WinForms, Xamarin
Stars: ✭ 136 (+156.6%)
Mutual labels:  dotnetcore
OtripleS
This is an open source schooling system, dedicated to provide a better experience for schools needing a management and communication and tutoring system all in one place. This project is aiming toward directing all the software development funds and hours to families in need, the idea of the project is to allow schools to use the system as long …
Stars: ✭ 273 (+415.09%)
Mutual labels:  dotnetcore
Sharpsnmplib
Sharp SNMP Library- Open Source SNMP for .NET and Mono
Stars: ✭ 247 (+366.04%)
Mutual labels:  dotnetcore
dotget
Installer for .NET Core CLI Apps
Stars: ✭ 35 (-33.96%)
Mutual labels:  dotnetcore
CrawlerSamples
This is a Puppeteer+AngleSharp crawler console app samples, used C# 7.1 coding and dotnet core build.
Stars: ✭ 36 (-32.08%)
Mutual labels:  dotnetcore
GatewayService
GatewayService (Ocelot).
Stars: ✭ 19 (-64.15%)
Mutual labels:  dotnetcore
aurelia-dotnet-template
A starting point for new dotnet projects using the aurelia-framework with typescript and webpack.
Stars: ✭ 13 (-75.47%)
Mutual labels:  dotnetcore
ApiJwtWithTwoSts
Web API authorization, multi-IDP solutions in ASP.NET Core
Stars: ✭ 43 (-18.87%)
Mutual labels:  dotnetcore
Samples
Sample applications using App.Metrics
Stars: ✭ 19 (-64.15%)
Mutual labels:  dotnetcore
FineCodeCoverage
Visualize unit test code coverage easily for free in Visual Studio Community Edition (and other editions too)
Stars: ✭ 391 (+637.74%)
Mutual labels:  dotnetcore
aliyun-openapi-sdk-net-core
aliyun open api sdk for .net core 2.0
Stars: ✭ 17 (-67.92%)
Mutual labels:  dotnetcore
Jt808
JT808协议、GB808协议、道路运输车辆卫星定位系统-北斗兼容车载终端通讯协议(支持2013、2019版本)
Stars: ✭ 251 (+373.58%)
Mutual labels:  dotnetcore
Dot-Net-Ecosystem
Welcome to the GitHub repository of the .NET Ecosystem. This repository contains the examples for the Pluralsight course: The .NET Ecosystem: The Big Picture. You can download a copy and follow along in the course.
Stars: ✭ 34 (-35.85%)
Mutual labels:  dotnetcore
Uragano
Uragano, A simple, high performance RPC library. Support load balancing, circuit breaker, fallback, caching, intercepting.
Stars: ✭ 28 (-47.17%)
Mutual labels:  dotnetcore
Pharmacist
Builds observables from events.
Stars: ✭ 221 (+316.98%)
Mutual labels:  dotnetcore
LoveCollection
我们搞技术的经常会要收藏些链接、资料什么的。但是,由于资料过多,浏览器的收藏夹并不便于管理,于是就诞生了“爱收藏”。https://i.haojima.net
Stars: ✭ 41 (-22.64%)
Mutual labels:  dotnetcore

Dot Net Core Git Pre Push Checks

This is a git pre push script for dot net core to check your push isn't going to break the build and will pass all unit tests.

What to do

You need to place this is your git repo folder in /.git/hooks/, this is a hidden folder so you will have to turn on "show hidden folders" or cd into the dir in terminal. E.g. cd /.git/hooks inside of your local repo folder.

All you should need to change is on line 32, "cd test", change this to to the root folder of your test project. e.g. cd test/MyTestProject.

How to run

Everything is automated, and will run on every "git push" command. Git knows to look in the .git/hooks folder and as long as the file is named "pre-push" then all will work.

Fails

If the pre-push fails, then you will get a red terminal message of:

  1. Failed to build the project, please fix this and push again
  2. Unit tests failed, please fix and push again

Pass

If the pre-push all passes, then you will get a green terminal message of:

  1. Pre push check passed!

Your push will also be pushed to your git repo.

Issues

These are some things I have came across while running this pre-push.

  1. If you haven't pulled the most recent changes from your repo, then the pre-push check will run but only at the end of the pre-push you will be told you need to "git pull" the latest changes before you can push.
  2. If you are running your application in visual studio, you will need to stop it running before the pre-push can run.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].