Skip to content

Commit

Permalink
Extract test to separate workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
w-enterprises committed Dec 4, 2020
1 parent bf7f0ce commit 5b0ca61
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 6 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: test

on:
push:
branches: [ main ]
paths-ignore:
- 'README.md'
pull_request:
branches: [ main ]

jobs:
build:
runs-on: windows-2019

steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Setup .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: 3.1.301
- name: Install dependencies
run: dotnet restore
- name: Build
run: dotnet build --configuration Release --no-restore
- name: Test
run: dotnet test --no-restore --logger:"console;verbosity=normal"
4 changes: 1 addition & 3 deletions .github/workflows/unix.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: .NET Core build | unix
name: build | unix

on:
push:
Expand Down Expand Up @@ -26,8 +26,6 @@ jobs:
run: dotnet tool restore
- name: Build
run: dotnet build --configuration Release --no-restore
- name: Test
run: dotnet test --no-restore --logger:"console;verbosity=normal"
- name: Publish Linux (ARM)
run: dotnet publish AllMyLights/AllMyLights.csproj --runtime linux-arm --configuration Release -p:PublishSingleFile=true -p:UseAppHost=true --self-contained false
- name: Publish Linux (x64)
Expand Down
4 changes: 1 addition & 3 deletions .github/workflows/windows.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: .NET Core build | windows
name: build | windows

on:
push:
Expand Down Expand Up @@ -26,8 +26,6 @@ jobs:
run: dotnet tool restore
- name: Build
run: dotnet build --configuration Release --no-restore
- name: Test
run: dotnet test --no-restore --logger:"console;verbosity=normal"
- name: Publish
run: dotnet publish AllMyLights/AllMyLights.csproj --runtime win-x64 --configuration Release -p:PublishSingleFile=true -p:UseAppHost=true --self-contained false
- name: Archive
Expand Down

0 comments on commit 5b0ca61

Please sign in to comment.