Code Monkey home page Code Monkey logo

actionskata's Introduction

Quality Gate Status

This repo holds basic app with some unit tests to demonstrate basic usage of the Github Actions with .NET project.

Steps

This section describes steps to implement basic Github Actions workflow with .NET project.

Preparation

  1. Fork this repository and clone your repository to be able to modify content of the repository.
  2. Create new branch from main branch.
  3. Create empty file .github/workflows/dotnet.yml
  4. Commit and push your changes to the remote repository.
  5. Create PR from your branch to main branch.

Tasks

  1. Create workflow with basic action that prints out welcome message

  2. Extend workflow with steps for dotnet build, test and publish

    • run on main / master branch and pull requests
    • use the descriptive naming for the jobs
    • modelate relations between jobs as visualized below

Expected workflow with defined jobs

  1. (Optional) Extend workflow with step performing static analysis of your code using sonarcloud
    • Create free account on sonarcloud
    • Allow Sonarcloud as application with access to Github
    • Follow steps to integrate Sonarcloud and Github using Github actions
    • Replace placeholder for build command with your build command
    • Check analysis results on pull request detail screen and sonarcloud dashboard
    • Put badge with analysis results to your README (see the badge on the top of this readme)

Expected workflow with sonarcloud job

Disclaimer: Set-up of the workflow is not the best one nor the correct one. It is used to demonstrate basics of the Github Actions and workflow definition. Some jobs can be merged to one, caching may be used or e.g. tests results may be reported.

actionskata's People

Contributors

kubmir avatar

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.