Skip to content

Commit

Permalink
Build script update
Browse files Browse the repository at this point in the history
  • Loading branch information
artiomchi committed Nov 19, 2023
1 parent a9fa757 commit 60af794
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 32 deletions.
25 changes: 0 additions & 25 deletions .github/workflows/build-quick.yml

This file was deleted.

36 changes: 31 additions & 5 deletions .github/workflows/build-full.yml → .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,38 @@
name: .NET Full Build
name: Build

on: [push, pull_request]

jobs:
build-quick:
name: Quick Build
runs-on: ubuntu-latest
steps:
- uses: actions/setup-dotnet@v3
with:
dotnet-version: '7.0'
- uses: actions/checkout@v3
- name: Restore dependencies
run: dotnet restore
- name: Build
run: dotnet build --no-restore
- name: Test
run: dotnet test ./test/FlexLabs.EntityFrameworkCore.Upsert.Tests --no-build --logger "trx;LogFileName=test-results.trx"
- name: Test Report
uses: dorny/test-reporter@v1
if: success() || failure()
with:
name: Test Results (quick)
path: '**/TestResults/*.trx'
reporter: dotnet-trx

build-ubuntu:
name: Full Build (Ubuntu)
runs-on: ubuntu-latest
steps:
- uses: actions/setup-dotnet@v1
- uses: actions/setup-dotnet@v3
with:
dotnet-version: '7.0'
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Restore dependencies
run: dotnet restore
- name: Build
Expand All @@ -26,14 +49,17 @@ jobs:


build-windows:
name: Full Build (Windows)
runs-on: windows-latest
steps:
- uses: actions/setup-dotnet@v1
- uses: actions/setup-dotnet@v3
with:
dotnet-version: '7.0'
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Restore dependencies
run: dotnet restore
- name: Build
run: dotnet build --no-restore
- name: Test
run: dotnet test --no-build --logger "trx;LogFileName=test-results.trx"
- name: Test Report
Expand Down
3 changes: 1 addition & 2 deletions FlexLabs.Upsert.sln
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = ".solution", ".solution", "{
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "github-workflows", "github-workflows", "{3B24B110-DA69-4764-9EB3-E7E89695A6DC}"
ProjectSection(SolutionItems) = preProject
.github\workflows\build-full.yml = .github\workflows\build-full.yml
.github\workflows\build-quick.yml = .github\workflows\build-quick.yml
.github\workflows\build.yml = .github\workflows\build.yml
EndProjectSection
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "src", "src", "{0DCBBEBD-A5B9-46F1-B9DE-F469447630F1}"
Expand Down

0 comments on commit 60af794

Please sign in to comment.