Skip to content

Commit

Permalink
Setup initial Cake build, Sourcelink, etc. Closes #11
Browse files Browse the repository at this point in the history
  • Loading branch information
augustoproiete committed Mar 18, 2021
1 parent e14cf5f commit 752efcb
Show file tree
Hide file tree
Showing 23 changed files with 429 additions and 270 deletions.
18 changes: 18 additions & 0 deletions .config/dotnet-tools.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"version": 1,
"isRoot": true,
"tools": {
"cake.tool": {
"version": "1.1.0",
"commands": [
"dotnet-cake"
]
},
"minver-cli": {
"version": "2.5.0",
"commands": [
"minver"
]
}
}
}
20 changes: 20 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# EditorConfig is awesome: http://EditorConfig.org

# top-most EditorConfig file
root = true

[*]
end_of_line = unset
trim_trailing_whitespace = true
insert_final_newline = true
indent_style = space
indent_size = 4

[*.{xml,config,nuspec,csproj,props,targets,ps1}]
indent_size = 2

[*.{sh}]
end_of_line = lf

[*.{dotsettings}]
end_of_line = lf
6 changes: 6 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Set the default behavior, in case people don't have core.autocrlf set
* text=auto

# Explicitly declare files that should always be converted to LF regardless of platform
*.sh text eol=lf
*.dotsettings text eol=lf
15 changes: 15 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
version: 2
updates:
- package-ecosystem: "nuget"
directory: "/src"
schedule:
interval: "daily"
target-branch: "master"
ignore:
- dependency-name: "Cake.Core"
- dependency-name: "Cake.Common"
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "daily"
target-branch: "master"
52 changes: 52 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
on:
push:
branches:
- master
- develop
- "feature/**"
- "release/**"
- "hotfix/**"
tags:
- "*.*.*"
paths-ignore:
- "README.md"

pull_request:

workflow_dispatch:

env:
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true
DOTNET_CLI_TELEMETRY_OPTOUT: true
DOTNET_NOLOGO: true

jobs:
build:
strategy:
fail-fast: false
matrix:
job:
- os: ubuntu-18.04
build: ./build.sh
- os: windows-2019
build: ./build.cmd
- os: macos-10.15
build: ./build.sh
name: ${{ matrix.job.os }}
runs-on: ${{ matrix.job.os }}
steps:
- name: Setup netcoreapp3.1
uses: actions/setup-dotnet@v1.7.2
with:
dotnet-version: "3.1.407"
- name: Setup net5.0
uses: actions/setup-dotnet@v1.7.2
with:
dotnet-version: "5.0.201"
- name: Run dotnet --info
run: dotnet --info
- uses: actions/checkout@v2.3.4
with:
fetch-depth: 0
- name: Build
run: ${{ matrix.job.build }} --verbosity=diagnostic --target=pack
13 changes: 13 additions & 0 deletions .github/workflows/dependabot-cake.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
on:
schedule:
# every Sunday at 6am
- cron: '0 6 * * SUN'

workflow_dispatch:

jobs:
dependabot-cake:
runs-on: ubuntu-18.04
steps:
- name: check/update cake dependencies
uses: augustoproiete-actions/nils-org--dependabot-cake-action@v1
Loading

0 comments on commit 752efcb

Please sign in to comment.