Skip to content

Commit 759c910

Browse files
committed
Work CI-CD
- Add github action to generate changelog. - Remove private feed from nuget config. - Fix AZDO trigger list. - Add pr checks github action. - Migrate update dependencies action to template. ***NO_CI***
1 parent acf09d0 commit 759c910

File tree

6 files changed

+87
-17
lines changed

6 files changed

+87
-17
lines changed

.github/.changelog-config.json

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
{
2+
"categories": [
3+
{
4+
"title": "## New Features and enhancements",
5+
"labels": [
6+
"Type: enhancement"
7+
],
8+
"exhaustive": true
9+
},
10+
{
11+
"title": "## Bug Fixes",
12+
"labels": [
13+
"Type: bug"
14+
],
15+
"exhaustive": true
16+
},
17+
{
18+
"title": "## Documentation",
19+
"labels": [
20+
"Type: documentation"
21+
],
22+
"exhaustive": true
23+
},
24+
{
25+
"title": "## ⚠️ Breaking Changes",
26+
"labels": [
27+
"Breaking-Change"
28+
],
29+
"exhaustive": true
30+
},
31+
{
32+
"title": "## Updated dependencies",
33+
"labels": [
34+
"Type: dependencies"
35+
],
36+
"exhaustive": true
37+
}
38+
],
39+
"sort": "ASC",
40+
"template": "${{CHANGELOG}}\n\n**Full Changelog:** ${{RELEASE_DIFF}}\n\nThe following NuGet package is available from this release:\n\n:package: [System.Device.Adc](https://www.nuget.org/packages/nanoFramework.System.Device.Adc/)",
41+
"pr_template": "* ${{TITLE}} by @${{AUTHOR}} in #${{NUMBER}}",
42+
"empty_template": "- no changes",
43+
"max_tags_to_fetch": 200,
44+
"max_pull_requests": 200
45+
}
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# Copyright (c) .NET Foundation and Contributors
2+
# See LICENSE file in the project root for full license information.
3+
4+
name: Generate Changelog
5+
run-name: Generate changelog
6+
7+
on:
8+
push:
9+
tags:
10+
- '*'
11+
12+
jobs:
13+
compose_changelog:
14+
name: nanoFramework
15+
uses: nanoframework/nf-tools/.github/workflows/generate-changelog.yml@main
16+
secrets: inherit

.github/workflows/pr-checks.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# Copyright (c) .NET Foundation and Contributors
2+
# See LICENSE file in the project root for full license information.
3+
4+
name: PR Checks
5+
6+
on:
7+
pull_request:
8+
9+
jobs:
10+
check_package_lock:
11+
name: nanoFramework
12+
uses: nanoframework/nf-tools/.github/workflows/check-package-lock.yml@main
13+
check_nuget_latest:
14+
name: nanoFramework
15+
uses: nanoframework/nf-tools/.github/workflows/check-packages-updated.yml@main
16+
secrets: inherit
17+
with:
18+
solution: 'nanoframework.System.Device.Adc.sln'

.github/workflows/update-dependencies.yml

Lines changed: 7 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@ name: Daily update dependencies
77

88
on:
99
schedule:
10-
# At 00:00 UTC every day.
11-
- cron: '00 00 * * *'
10+
- cron: '00 00 * * Mon,Thu'
1211
repository_dispatch:
1312
types: update-dependencies
1413

@@ -17,16 +16,9 @@ defaults:
1716
shell: pwsh
1817

1918
jobs:
20-
update-dotnet-preview:
21-
name: Update .NET nanoFramework dependencies
22-
timeout-minutes: 15
23-
runs-on: windows-latest
24-
env:
25-
GITHUB_TOKEN: ${{ github.token }}
26-
steps:
27-
- name: Checkout
28-
uses: actions/checkout@v2
29-
- name: Update dependencies
30-
uses: nanoframework/nanodu@v1
31-
with:
32-
solutionsToCheck: 'nanoFramework.System.Device.Adc.sln'
19+
update-dependencies:
20+
name: nanoFramework
21+
uses: nanoframework/nf-tools/.github/workflows/update-dependencies.yml@main
22+
secrets: inherit
23+
with:
24+
solutionsToCheck: 'nanoFramework.System.Device.Adc.sln'

NuGet.Config

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,5 @@
22
<configuration>
33
<packageSources>
44
<add key="NuGet" value="https://api.nuget.org/v3/index.json" protocolVersion="3" />
5-
<add key="Azure Artifacts nanoFramework dev" value="https://pkgs.dev.azure.com/nanoframework/feed/_packaging/sandbox/nuget/v3/index.json" protocolVersion="3" />
65
</packageSources>
76
</configuration>

System.Device.Adc/AdcController.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ public override bool IsChannelModeSupported(AdcChannelMode channelMode)
102102
}
103103

104104
/// <inheritdoc/>
105-
public override AdcChannel OpenChannel(Int32 channelNumber)
105+
public AdcChannel OpenChannel(Int32 channelNumber)
106106
{
107107
NativeOpenChannel(channelNumber);
108108

0 commit comments

Comments
 (0)