Skip to content

Commit 476d979

Browse files
committed
Merge pull request #86 from Nyrest/dependabot/github_actions/actions/setup-dotnet-4.2.0
Bump actions/setup-dotnet from 4.1.0 to 4.2.0
0 parents  commit 476d979

File tree

99 files changed

+7083
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

99 files changed

+7083
-0
lines changed

.gitattributes

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
###############################################################################
2+
# Set default behavior to automatically normalize line endings.
3+
###############################################################################
4+
* text=auto
5+
6+
###############################################################################
7+
# Set default behavior for command prompt diff.
8+
#
9+
# This is need for earlier builds of msysgit that does not have it on by
10+
# default for csharp files.
11+
# Note: This is only used by command line
12+
###############################################################################
13+
#*.cs diff=csharp
14+
15+
###############################################################################
16+
# Set the merge driver for project and solution files
17+
#
18+
# Merging from the command prompt will add diff markers to the files if there
19+
# are conflicts (Merging from VS is not affected by the settings below, in VS
20+
# the diff markers are never inserted). Diff markers may cause the following
21+
# file extensions to fail to load in VS. An alternative would be to treat
22+
# these files as binary and thus will always conflict and require user
23+
# intervention with every merge. To do so, just uncomment the entries below
24+
###############################################################################
25+
#*.sln merge=binary
26+
#*.csproj merge=binary
27+
#*.vbproj merge=binary
28+
#*.vcxproj merge=binary
29+
#*.vcproj merge=binary
30+
#*.dbproj merge=binary
31+
#*.fsproj merge=binary
32+
#*.lsproj merge=binary
33+
#*.wixproj merge=binary
34+
#*.modelproj merge=binary
35+
#*.sqlproj merge=binary
36+
#*.wwaproj merge=binary
37+
38+
###############################################################################
39+
# behavior for image files
40+
#
41+
# image files are treated as binary by default.
42+
###############################################################################
43+
#*.jpg binary
44+
#*.png binary
45+
#*.gif binary
46+
47+
###############################################################################
48+
# diff behavior for common document formats
49+
#
50+
# Convert binary document formats to text before diffing them. This feature
51+
# is only available from the command line. Turn it on by uncommenting the
52+
# entries below.
53+
###############################################################################
54+
#*.doc diff=astextplain
55+
#*.DOC diff=astextplain
56+
#*.docx diff=astextplain
57+
#*.DOCX diff=astextplain
58+
#*.dot diff=astextplain
59+
#*.DOT diff=astextplain
60+
#*.pdf diff=astextplain
61+
#*.PDF diff=astextplain
62+
#*.rtf diff=astextplain
63+
#*.RTF diff=astextplain

.github/dependabot.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# To get started with Dependabot version updates, you'll need to specify which
2+
# package ecosystems to update and where the package manifests are located.
3+
# Please see the documentation for all configuration options:
4+
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
5+
6+
version: 2
7+
updates:
8+
- package-ecosystem: nuget
9+
directory: "/"
10+
schedule:
11+
interval: daily
12+
open-pull-requests-limit: 10
13+
- package-ecosystem: github-actions
14+
directory: "/"
15+
schedule:
16+
interval: daily
17+
open-pull-requests-limit: 10

.github/workflows/publish.yml

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
# This is a basic workflow to help you get started with Actions
2+
3+
name: Publish to Nuget
4+
5+
# Controls when the workflow will run
6+
on:
7+
# Allows you to run this workflow manually from the Actions tab
8+
workflow_dispatch:
9+
10+
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
11+
jobs:
12+
Tests:
13+
runs-on: ${{ matrix.os }}
14+
15+
strategy:
16+
matrix:
17+
os: [windows-latest, ubuntu-latest, macos-latest]
18+
configuration: [Debug, Release]
19+
20+
steps:
21+
- uses: actions/checkout@v4
22+
- name: Setup .NET
23+
uses: actions/[email protected]
24+
with:
25+
dotnet-version: |
26+
3.1.x
27+
5.0.x
28+
6.0.x
29+
8.0.x
30+
9.0.x
31+
- name: Restore dependencies
32+
run: dotnet restore
33+
- name: Build
34+
run: dotnet build -c ${{ matrix.configuration }} --no-restore -p:NoWarn=CS1591
35+
- name: Test
36+
run: dotnet test -c ${{ matrix.configuration }} --no-build --no-restore --verbosity normal
37+
38+
Publish:
39+
runs-on: windows-latest
40+
needs: [Tests]
41+
42+
steps:
43+
- uses: actions/checkout@v4
44+
- name: Setup .NET
45+
uses: actions/[email protected]
46+
with:
47+
dotnet-version: |
48+
3.1.x
49+
5.0.x
50+
6.0.x
51+
8.0.x
52+
9.0.x
53+
- name: Restore dependencies
54+
run: dotnet restore
55+
- name: Build
56+
run: dotnet build -c Release --no-restore -p:NoWarn=CS1591
57+
- name: Test Again
58+
run: dotnet test -c Release --no-build --no-restore --verbosity normal
59+
- name: Pack
60+
run: dotnet pack -o publishOutput -c Release --no-restore --no-build --verbosity normal
61+
# Runs a set of commands using the runners shell
62+
- name: Push to Nuget
63+
run: dotnet nuget push publishOutput\*.nupkg -k ${{ secrets.NUGET_UPDATEKEY }} -s https://api.nuget.org/v3/index.json

.github/workflows/tests.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: Tests
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
paths-ignore:
7+
- 'README.md'
8+
pull_request:
9+
branches: [ main ]
10+
paths-ignore:
11+
- 'README.md'
12+
workflow_dispatch:
13+
14+
jobs:
15+
Tests:
16+
runs-on: ${{ matrix.os }}
17+
18+
strategy:
19+
matrix:
20+
os: [windows-latest, ubuntu-latest, macos-latest]
21+
configuration: [Debug, Release]
22+
23+
steps:
24+
- uses: actions/checkout@v4
25+
- name: Setup .NET
26+
uses: actions/[email protected]
27+
with:
28+
dotnet-version: |
29+
3.1.x
30+
5.0.x
31+
6.0.x
32+
7.0.x
33+
8.0.x
34+
9.0.x
35+
- name: Restore dependencies
36+
run: dotnet restore
37+
- name: Build
38+
run: dotnet build -c ${{ matrix.configuration }} --no-restore -p:NoWarn=CS1591
39+
- name: Test
40+
run: dotnet test -c ${{ matrix.configuration }} --no-build --no-restore --verbosity normal

0 commit comments

Comments
 (0)