Skip to content

About

This repository provides common GitHub Actions for building .NET applications.

Resources

Security policy

Stars

0 stars

Watchers

1 watching

Forks

Repository files navigation

Dotnet Actions

This repository contains common .NET GitHub Actions to be reused across projects.

General

Example

name: Build solution and run tests

on:
  pull_request:
    branches:
      - main

concurrency:
  group: ${{ github.workflow }}-${{ github.ref }}
  cancel-in-progress: true

jobs:
  build:
    name: Build solution and run tests
    runs-on: ubuntu-latest
    permissions:
      contents: read
    timeout-minutes: 15
    steps:
      - name: Checkout repository
        uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
        with:
          persist-credentials: false
      - name: Build solution and run tests
        uses: ThorstenSauter/dotnet-actions/build-and-test@v4
        env:
          Test__Input: 'Test' # Injecting configuration for tests
        with:
          # Only needed for packages from a custom feed, e.g. GitHub Packages
          nuget-auth-token: ${{ secrets.NUGET_GITHUB_PACKAGES_TOKEN }}
          nuget-feed-uri: ${{ vars.NUGET_FEED_URI }}

Actions

The repository contains these actions:

About

This repository provides common GitHub Actions for building .NET applications.

Resources

Security policy

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages