Skip to content

Fixes a startup bug when commands are received during startup before … #5

Fixes a startup bug when commands are received during startup before …

Fixes a startup bug when commands are received during startup before … #5

Workflow file for this run

name: build
on:
push:
branches:
- "**"
pull_request:
branches:
- "**"
env:
DOTNETVERSION: "7.0.x"
APP: "HomeAutio.Mqtt.Ecobee"
SOLUTION: "./src/HomeAutio.Mqtt.Ecobee.sln"
BUILDOUTPUTPATH: "./src/HomeAutio.Mqtt.Ecobee/bin/Release/net7.0"
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Setup .NET Core SDK ${{ env.DOTNETVERSION }}
uses: actions/setup-dotnet@v3
with:
dotnet-version: ${{ env.DOTNETVERSION }}
- name: Install dependencies
run: dotnet restore ${{ env.SOLUTION }}
- name: Build
run: dotnet build ${{ env.SOLUTION }} --configuration Release --no-restore
- name: Upload app build artifact
uses: actions/upload-artifact@v3
with:
name: ${{ env.APP }}
path: ${{ env.BUILDOUTPUTPATH }}
- name: Test
run: dotnet test ${{ env.SOLUTION }} --no-restore --verbosity normal --logger trx --results-directory "TestResults"
- name: Upload TestResults build artifact
uses: actions/upload-artifact@v3
with:
name: TestResults
path: TestResults