Skip to content

Commit 2a10dbe

Browse files
committed
feat!: Setup TypeGuard for 1.0.0 release
1 parent 18afe38 commit 2a10dbe

94 files changed

Lines changed: 6030 additions & 4267 deletions

File tree

Some content is hidden

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

.github/dependabot.yml

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
version: 2
22
updates:
3-
# NuGet dependencies
43
- package-ecosystem: 'nuget'
54
directory: '/'
65
schedule:
@@ -25,7 +24,19 @@ updates:
2524
commit-message:
2625
prefix: 'chore'
2726

28-
# GitHub Actions
27+
- package-ecosystem: 'devcontainers'
28+
directory: '/'
29+
schedule:
30+
interval: 'weekly'
31+
day: 'monday'
32+
time: '09:00'
33+
reviewers:
34+
- 'DoubledDoge'
35+
assignees:
36+
- 'DoubledDoge'
37+
commit-message:
38+
prefix: 'chore'
39+
2940
- package-ecosystem: 'github-actions'
3041
directory: '/'
3142
schedule:
@@ -46,4 +57,3 @@ updates:
4657
- 'major'
4758
commit-message:
4859
prefix: 'chore'
49-

.github/release-drafter.yml

Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,84 @@
1+
name-template: 'v$RESOLVED_VERSION'
2+
tag-template: 'v$RESOLVED_VERSION'
3+
4+
version-resolver:
5+
major:
6+
labels:
7+
- 'breaking'
8+
minor:
9+
labels:
10+
- 'feature'
11+
patch:
12+
labels:
13+
- 'fix'
14+
- 'chore'
15+
- 'docs'
16+
- 'style'
17+
- 'perf'
18+
default: patch
19+
20+
change-template: '- $TITLE @$AUTHOR (#$NUMBER)'
21+
change-title-escapes: '\<*_&'
22+
23+
autolabeler:
24+
- label: 'breaking'
25+
title:
26+
- '/^feat!(\(.+\))?:/i'
27+
- '/BREAKING CHANGE/i'
28+
body:
29+
- '/BREAKING CHANGE/i'
30+
- label: 'feature'
31+
title:
32+
- '/^feat(\(.+\))?:/i'
33+
- label: 'fix'
34+
title:
35+
- '/^fix(\(.+\))?:/i'
36+
- label: 'docs'
37+
title:
38+
- '/^docs(\(.+\))?:/i'
39+
- label: 'style'
40+
title:
41+
- '/^style(\(.+\))?:/i'
42+
- label: 'perf'
43+
title:
44+
- '/^perf(\(.+\))?:/i'
45+
- label: 'chore'
46+
title:
47+
- '/^chore(\(.+\))?:/i'
48+
- '/^refactor(\(.+\))?:/i'
49+
- '/^build(\(.+\))?:/i'
50+
- '/^ci(\(.+\))?:/i'
51+
52+
categories:
53+
- title: '💥 Breaking Changes'
54+
labels:
55+
- 'breaking'
56+
- title: '🚀 Features'
57+
labels:
58+
- 'feature'
59+
- title: '🐛 Bug Fixes'
60+
labels:
61+
- 'fix'
62+
- title: '📚 Documentation'
63+
labels:
64+
- 'docs'
65+
- title: '🎨 Styling & Theming'
66+
labels:
67+
- 'style'
68+
- title: '🚅 Performance'
69+
labels:
70+
- 'perf'
71+
- title: '🧹 Maintenance'
72+
labels:
73+
- 'chore'
74+
75+
exclude-labels:
76+
- 'ignore-for-release'
77+
- 'dependencies'
78+
79+
template: |
80+
## What's Changed
81+
82+
$CHANGES
83+
84+
**Full Changelog**: https://github.com/DoubledDoge/TypeGuard/compare/$PREVIOUS_TAG...v$RESOLVED_VERSION

.github/release.yml

Lines changed: 0 additions & 59 deletions
This file was deleted.

.github/workflows/ci-cd.yml

Lines changed: 36 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: .NET CI-CD Pipeline
1+
name: .NET CI/CD Pipeline
22

33
on:
44
push:
@@ -7,6 +7,7 @@ on:
77
- 'src/**'
88
- '**/*.csproj'
99
- '**/*.sln'
10+
- '**/*.slnx'
1011
- '.github/workflows/ci-cd.yml'
1112
pull_request:
1213
branches: [main]
@@ -16,31 +17,38 @@ env:
1617
DOTNET_CLI_TELEMETRY_OPTOUT: true
1718
DOTNET_NOLOGO: true
1819
DOTNET_VERSION: |
19-
8.0.x
2020
9.0.x
2121
10.0.x
2222
2323
jobs:
24-
build-and-test:
25-
name: Build & Test (${{ matrix.os }})
24+
build:
25+
name: Build and Format (${{ matrix.os }})
2626
runs-on: ${{ matrix.os }}
2727
strategy:
28+
fail-fast: false
2829
matrix:
2930
os: [ubuntu-latest, windows-latest, macos-latest]
3031
permissions:
3132
contents: read
3233
pull-requests: write
3334

3435
steps:
35-
- uses: actions/checkout@v6
36+
- name: Checkout
37+
uses: actions/checkout@v4
3638
with:
3739
fetch-depth: 0
3840

39-
- uses: actions/setup-dotnet@v5
41+
- name: Setup .NET
42+
uses: actions/setup-dotnet@v5
4043
with:
4144
dotnet-version: ${{ env.DOTNET_VERSION }}
4245

43-
- uses: actions/cache@v4
46+
- name: Install MAUI workload
47+
run: dotnet workload install maui
48+
continue-on-error: true
49+
50+
- name: Cache NuGet packages
51+
uses: actions/cache@v4
4452
with:
4553
path: ~/.nuget/packages
4654
key: ${{ runner.os }}-nuget-${{ hashFiles('**/*.csproj') }}
@@ -49,33 +57,44 @@ jobs:
4957
- name: Restore dependencies
5058
run: dotnet restore
5159

60+
- name: Install project tools
61+
if: matrix.os == 'ubuntu-latest'
62+
run: dotnet tool restore
63+
5264
- name: Check code formatting
5365
if: matrix.os == 'ubuntu-latest'
54-
run: |
55-
dotnet tool restore
56-
dotnet csharpier check .
66+
run: dotnet csharpier check .
5767

5868
- name: Build
5969
run: dotnet build --configuration Release --no-restore
6070

6171
validate-package:
6272
name: Validate Package
6373
runs-on: ubuntu-latest
64-
needs: build-and-test
74+
needs: build
6575

6676
steps:
67-
- uses: actions/checkout@v6
77+
- name: Checkout
78+
uses: actions/checkout@v4
6879

69-
- uses: actions/setup-dotnet@v5
80+
- name: Setup .NET
81+
uses: actions/setup-dotnet@v5
7082
with:
7183
dotnet-version: ${{ env.DOTNET_VERSION }}
7284

73-
- name: Pack NuGet package
74-
run: dotnet pack --configuration Release --output ./artifacts
85+
- name: Install MAUI workload
86+
run: dotnet workload install maui
87+
continue-on-error: true
88+
89+
- name: Restore dependencies
90+
run: dotnet restore
91+
92+
- name: Pack NuGet packages
93+
run: dotnet pack --configuration Release --no-restore --output ./artifacts
7594

7695
- name: Upload artifacts
77-
uses: actions/upload-artifact@v5
96+
uses: actions/upload-artifact@v4
7897
with:
79-
name: nuget-package-${{ github.sha }}
98+
name: nuget-packages-${{ github.sha }}
8099
path: ./artifacts/*.nupkg
81100
retention-days: 7

.github/workflows/codeql.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ env:
2323
DOTNET_CLI_TELEMETRY_OPTOUT: true
2424
DOTNET_NOLOGO: true
2525
DOTNET_VERSION: |
26-
8.0.x
2726
9.0.x
27+
10.0.x
2828
2929
jobs:
3030
analyze:
@@ -47,6 +47,10 @@ jobs:
4747
with:
4848
dotnet-version: ${{ env.DOTNET_VERSION }}
4949

50+
- name: Install MAUI workload
51+
run: dotnet workload install maui
52+
continue-on-error: true
53+
5054
- name: Cache NuGet packages
5155
uses: actions/cache@v4
5256
with:

0 commit comments

Comments
 (0)