Skip to content

Commit

Permalink
Merge pull request #196 from BinaryKits/workflow
Browse files Browse the repository at this point in the history
Create dotnet - test.yml
  • Loading branch information
YipingRuan authored Sep 19, 2023
2 parents 3f4df76 + 70cebeb commit 051151d
Showing 1 changed file with 50 additions and 0 deletions.
50 changes: 50 additions & 0 deletions .github/workflows/dotnet - test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: .NET

on:
push:
branches: [ develop ]
pull_request:
branches: [ develop ]

jobs:
build-windows:

runs-on: windows-latest

steps:
- uses: actions/checkout@v2
- name: Setup .NET 6.0
uses: actions/setup-dotnet@v1
with:
dotnet-version: 6.0.x
- name: Restore dependencies
working-directory: ./src
run: dotnet restore
- name: Build
working-directory: ./src
run: dotnet build --configuration Release --no-restore /p:NoWarn=1591
- name: Test
working-directory: ./src
run: dotnet test --configuration Release --no-restore --no-build --verbosity normal

build-linux:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Setup .NET 6.0
uses: actions/setup-dotnet@v1
with:
dotnet-version: 6.0.x
- name: Restore dependencies
working-directory: ./src
run: dotnet restore
- name: Build
working-directory: ./src
run: dotnet build --configuration Release --no-restore /p:NoWarn=1591
- name: Test
working-directory: ./src
run: dotnet test --configuration Release --no-restore --no-build --verbosity normal


0 comments on commit 051151d

Please sign in to comment.