mirror of
https://github.com/tonytins/cstdotnet.git
synced 2025-10-16 19:03:37 -04:00
Unit tests
This commit is contained in:
parent
dbe28eb2b5
commit
2a98a07ad3
1 changed files with 20 additions and 0 deletions
49
.github/workflows/build.yml
vendored
Normal file
49
.github/workflows/build.yml
vendored
Normal file
|
@ -0,0 +1,49 @@
|
|||
name: .NET
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [main, master, "releases/**"]
|
||||
pull_request:
|
||||
branches: [main, master, "releases/**"]
|
||||
jobs:
|
||||
build:
|
||||
timeout-minutes: 15
|
||||
continue-on-error: true
|
||||
runs-on: ${{ matrix.platforms }}
|
||||
env:
|
||||
NUGET_PACKAGES: ${{ github.workspace }}/.nuget/packages
|
||||
strategy:
|
||||
matrix:
|
||||
dotnet: ["8.0.x"]
|
||||
platforms: ["ubuntu-latest", "windows-latest", "macos-latest"]
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Setup .NET
|
||||
uses: actions/setup-dotnet@v3
|
||||
with:
|
||||
dotnet-version: ${{ matrix.dotnet }}
|
||||
dotnet-quality: 'preview'
|
||||
- name: Install dependencies
|
||||
run: dotnet restore
|
||||
- name: Build
|
||||
run: dotnet build --configuration Release --no-restore
|
||||
test:
|
||||
timeout-minutes: 15
|
||||
continue-on-error: true
|
||||
runs-on: "ubuntu-latest"
|
||||
env:
|
||||
NUGET_PACKAGES: ${{ github.workspace }}/.nuget/packages
|
||||
strategy:
|
||||
matrix:
|
||||
dotnet: ["8.0.x"]
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Setup .NET
|
||||
uses: actions/setup-dotnet@v3
|
||||
with:
|
||||
dotnet-version: ${{ matrix.dotnet }}
|
||||
dotnet-quality: 'preview'
|
||||
- name: Install dependencies
|
||||
run: dotnet restore
|
||||
- name: Test
|
||||
run: dotnet test --no-restore
|
Loading…
Add table
Add a link
Reference in a new issue