Skip to content

Commit

Permalink
Merge pull request #1 from timheuer/main
Browse files Browse the repository at this point in the history
Added CI for push and pr validation
  • Loading branch information
dend authored Jul 21, 2021
2 parents d1a3b47 + f416ba6 commit 323974e
Show file tree
Hide file tree
Showing 2 changed files with 54 additions and 0 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
1 change: 1 addition & 0 deletions src/Deck.Surf/Deck.Surf.sln
Original file line number Diff line number Diff line change
Expand Up @@ -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 323974e

Please sign in to comment.