From e7f8d506fb48f049c9a739ab50126bd1abd0af52 Mon Sep 17 00:00:00 2001 From: Tim Heuer Date: Tue, 20 Jul 2021 13:47:39 -0700 Subject: [PATCH] Added CI for push and pr validation --- .github/workflows/build.yaml | 53 ++++++++++++++++++++++++++++++++++++ src/Deck.Surf/Deck.Surf.sln | 5 ++-- 2 files changed, 56 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/build.yaml diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml new file mode 100644 index 0000000..8d64409 --- /dev/null +++ b/.github/workflows/build.yaml @@ -0,0 +1,53 @@ +name: "Build" + +on: + push: + branches: + - main + paths-ignore: + - '**/*.md' + - '**/*.gitignore' + - '**/*.gitattributes' + pull_request: + branches: + - main + paths-ignore: + - '**/*.md' + - '**/*.gitignore' + - '**/*.gitattributes' + workflow_dispatch: + branches: + - main + paths-ignore: + - '**/*.md' + - '**/*.gitignore' + - '**/*.gitattributes' + +jobs: + build: + name: Build + runs-on: ubuntu-latest + env: + DOTNET_CLI_TELEMETRY_OPTOUT: 1 + DOTNET_SKIP_FIRST_TIME_EXPERIENCE: 1 + DOTNET_NOLOGO: true + DOTNET_GENERATE_ASPNET_CERTIFICATE: false + DOTNET_ADD_GLOBAL_TOOLS_TO_PATH: false + DOTNET_MULTILEVEL_LOOKUP: 0 + defaults: + run: + working-directory: src/Deck.Surf + + steps: + - uses: actions/checkout@v2 + + - name: Setup .NET Core SDK + uses: actions/setup-dotnet@v1.8.1 + with: + dotnet-version: 5.0.x + + - name: Restore + run: dotnet restore + + - name: Build + run: dotnet build --configuration Release --no-restore \ No newline at end of file diff --git a/src/Deck.Surf/Deck.Surf.sln b/src/Deck.Surf/Deck.Surf.sln index dd7d0a0..97572d1 100644 --- a/src/Deck.Surf/Deck.Surf.sln +++ b/src/Deck.Surf/Deck.Surf.sln @@ -1,7 +1,7 @@  Microsoft Visual Studio Solution File, Format Version 12.00 -# Visual Studio Version 16 -VisualStudioVersion = 16.0.31321.278 +# Visual Studio Version 17 +VisualStudioVersion = 17.0.31515.332 MinimumVisualStudioVersion = 10.0.40219.1 Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Deck.Surf", "Deck.Surf\Deck.Surf.csproj", "{6459234A-C61B-4346-991C-684D5BC9A07F}" EndProject @@ -12,6 +12,7 @@ EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{A4362C75-6F9E-4A88-B230-94D9DBC353BA}" ProjectSection(SolutionItems) = preProject .editorconfig = .editorconfig + ..\..\.github\workflows\build.yaml = ..\..\.github\workflows\build.yaml EndProjectSection EndProject Global