Skip to content

Commit

Permalink
Added CI
Browse files Browse the repository at this point in the history
  • Loading branch information
asimmon committed Jun 7, 2022
1 parent cd59f53 commit 5efe958
Show file tree
Hide file tree
Showing 4 changed files with 65 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: CI build

on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0

- uses: actions/setup-dotnet@v2
with:
dotnet-version: |
3.1.x
6.0.x
- run: ./build.ps1
shell: pwsh

- uses: actions/upload-artifact@v3
with:
name: packages
path: ./.output/**/*
29 changes: 29 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: NuGet push

on:
push:
tags:
- "*.*.*"

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0

- uses: actions/setup-dotnet@v2
with:
dotnet-version: |
3.1.x
6.0.x
- run: ./build.ps1 --target=push --nuget-api-key=${{ secrets.nuget_api_key }} --nuget-source=${{ secrets.nuget_source }}
shell: pwsh

- uses: actions/upload-artifact@v3
with:
name: packages
path: ./.output/**/*
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

An opinionated library that provides base unit test and fixture classes based on the `Microsoft.Extensions.*` packages used by modern .NET applications.

[![nuget](https://img.shields.io/nuget/v/GSoft.Xunit.Extensions.svg?logo=nuget)](https://www.nuget.org/packages/GSoft.Xunit.Extensions/)
[![build](https://img.shields.io/github/workflow/status/gsoft-inc/gsoft-xunit-extensions/CI%20build?logo=github)](https://github.com/gsoft-inc/gsoft-xunit-extensions/actions/workflows/ci.yml)


## Getting started

Expand Down
1 change: 1 addition & 0 deletions src/Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
<Copyright>Copyright © Groupe GSoft inc. $([System.DateTime]::UtcNow.ToString(yyyy))</Copyright>
<Authors>Anthony Simmon</Authors>
<Owners>Groupe GSoft inc.</Owners>
<PackageProjectUrl>https://github.com/gsoft-inc/gsoft-xunit-extensions</PackageProjectUrl>
<PackageLicenseExpression>Apache-2.0</PackageLicenseExpression>
<LangVersion>10</LangVersion>
<Nullable>enable</Nullable>
Expand Down

0 comments on commit 5efe958

Please sign in to comment.