Skip to content

Commit

Permalink
Added CI for push and pr validation
Browse files Browse the repository at this point in the history
  • Loading branch information
timheuer committed Jul 20, 2021
1 parent d1a3b47 commit e7f8d50
Show file tree
Hide file tree
Showing 2 changed files with 56 additions and 2 deletions.
53 changes: 53 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -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/[email protected]
with:
dotnet-version: 5.0.x

- name: Restore
run: dotnet restore

- name: Build
run: dotnet build --configuration Release --no-restore
5 changes: 3 additions & 2 deletions src/Deck.Surf/Deck.Surf.sln
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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
Expand Down

0 comments on commit e7f8d50

Please sign in to comment.