Skip to content

Commit

Permalink
Merge pull request #202 from IntelliTect/BenjaminMichaelis-updateBuil…
Browse files Browse the repository at this point in the history
…dv9.0

Consolidate Build Files
  • Loading branch information
BenjaminMichaelis authored Dec 21, 2021
2 parents 669cc1f + 2d7912e commit 5a3058b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 38 deletions.
33 changes: 0 additions & 33 deletions .github/workflows/Branch v9.0 - Windows.yml

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Branch v9.0 - Linux - EssentialCSharp
name: Branch v9.0 - EssentialCSharp

on:
push:
Expand All @@ -9,10 +9,12 @@ on:
- cron: 0 6 * * 1

jobs:
build:
runs-on: ubuntu-latest
build-and-test:
name: build-and-test-(${{matrix.dotnet-version}}) on ${{matrix.os}}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macOS-latest]
dotnet-version: [ '3.1.x', '5.0.x' ]
steps:
- uses: actions/checkout@v2
Expand All @@ -30,4 +32,4 @@ jobs:
- name: Build
run: dotnet build --no-restore
- name: Test
run: dotnet test --no-build --verbosity normal
run: dotnet test --no-build --no-restore --verbosity normal
2 changes: 1 addition & 1 deletion src/Chapter09.Tests/Listing09.17.UsingFlagsAttribute.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ public class ProgramTests
[TestMethod]
public void Main_FileAttributes_UseFlagsAttribute()
{
string expected = RuntimeInformation.IsOSPlatform(OSPlatform.Windows)
string expected = (RuntimeInformation.IsOSPlatform(OSPlatform.Windows) || RuntimeInformation.IsOSPlatform(OSPlatform.OSX))
? @"""ReadOnly | Hidden"" outputs as ""ReadOnly, Hidden""
ReadOnly, Hidden"
: @"""ReadOnly"" outputs as ""ReadOnly""
Expand Down

0 comments on commit 5a3058b

Please sign in to comment.