From 5b0ca6106030de29ed36f813e770504209acb42b Mon Sep 17 00:00:00 2001 From: Jan Wendland Date: Fri, 4 Dec 2020 18:02:14 +0100 Subject: [PATCH] Extract test to separate workflow --- .github/workflows/test.yml | 28 ++++++++++++++++++++++++++++ .github/workflows/unix.yml | 4 +--- .github/workflows/windows.yml | 4 +--- 3 files changed, 30 insertions(+), 6 deletions(-) create mode 100644 .github/workflows/test.yml diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..d9bf27f --- /dev/null +++ b/.github/workflows/test.yml @@ -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" \ No newline at end of file diff --git a/.github/workflows/unix.yml b/.github/workflows/unix.yml index 5d2a1e9..5585f88 100644 --- a/.github/workflows/unix.yml +++ b/.github/workflows/unix.yml @@ -1,4 +1,4 @@ -name: .NET Core build | unix +name: build | unix on: push: @@ -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) diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml index d61cb75..59c8b5f 100644 --- a/.github/workflows/windows.yml +++ b/.github/workflows/windows.yml @@ -1,4 +1,4 @@ -name: .NET Core build | windows +name: build | windows on: push: @@ -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