Skip to content

Commit 0b90779

Browse files
authored
Update the repository from fork laget.se/ical net (#595)
* Update the repository from fork `laget.se/ical net` **Apply the following change after the update:** * Remove net5.0 as target framework from all lprojects * Update nuget-specific settings * Update icon.png file used in Ical.Net.nuspec * Update package metadata * Remove net5.0 package target framework * Update README.md to reflect the current project state with ical-org * Fix: Update publish.yml to create deterministic builds for packages, update action versions * Update GitHub actions to reflect the changed main branch name * Update `readme.md` * Update CI workflows `publish.yml` and `tests.yml` - Changed `runs-on` to `ubuntu-latest`. - Added `fetch-depth: 0` to `actions/checkout@v4` in both workflows. - Added `Get version tag` step in `publish.yml`. - Included `-p:nowarn=1591` in `Build` steps to suppress warnings. - Changed `Test` verbosity to `quiet` in both workflows. - Updated `Build and pack for publishing` in `publish.yml` to use `VERSION`. - Updated `Store artifacts` step in `publish.yml` for new naming convention. - Updated `Push package to NuGet` step in `publish.yml` to use `VERSION`. * Update ProdId constant and NodaTime package version * Add back assembly signing to projects and include strong name key * Update `Ical.Net.Tests.csproj` and `Ical.Net.csproj` to include assembly signing by adding `SignAssembly` and `AssemblyOriginatorKeyFile` properties. * Replace `InternalsVisibleTo` with `AssemblyAttribute` including a public key in `Ical.Net.csproj`. * Add `IcalNetStrongnameKey.snk` for strong name key. * Move InternalsVisibleTo from AssemblyInfo.cs to project file * Add class `RegexDefaults` and update all Regex with `RegexDefaults.Timeout` which is set to 200 milliseconds **This PR closes the following PRs which have previously been merged into `laget.se/ical net`** Closes #491 Closes #443 Closes #525 Closes #528 Closes #571 Closes #579 Closes #584 Closes #595
2 parents 1ad17e5 + ae4bd4f commit 0b90779

File tree

358 files changed

+1512
-2184
lines changed

Some content is hidden

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

358 files changed

+1512
-2184
lines changed

.editorconfig

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
root = true
2+
3+
[*]
4+
charset = utf-8-bom
5+
end_of_line = crlf
6+
indent_style = space
7+
trim_trailing_whitespace = true
8+
9+
[*.cs]
10+
indent_size = 4

.gitattributes

Lines changed: 3 additions & 60 deletions
Original file line numberDiff line numberDiff line change
@@ -1,63 +1,6 @@
1-
###############################################################################
2-
# Set default behavior to automatically normalize line endings.
3-
###############################################################################
1+
# Auto detect text files and perform LF normalization
2+
# http://davidlaing.com/2012/09/19/customise-your-gitattributes-to-become-a-git-ninja/
43
* text=auto
54

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
5+
*.cs diff=csharp
146

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/workflows/codeql-analysis.yml

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

.github/workflows/publish.yml

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
name: Publish
2+
# This job builds and and publishes the package to NuGet.
3+
# It depends on the included tests job to complete successfully.
4+
# The version number is determined by the latest tag for the 'main' branch selected with workflow dispatch.
5+
on:
6+
workflow_dispatch: {}
7+
8+
jobs:
9+
tests:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- uses: actions/checkout@v4
14+
with:
15+
fetch-depth: 0 # Fetch all history for all tags and branches
16+
- name: Setup .NET
17+
uses: actions/setup-dotnet@v4
18+
with:
19+
dotnet-version: |
20+
8.0.x
21+
6.0.x
22+
3.1.x
23+
- name: Restore dependencies
24+
run: dotnet restore
25+
- name: Build
26+
run: dotnet build --no-restore --configuration Release -p:nowarn=1591
27+
- name: Test
28+
run: dotnet test --no-build --configuration Release --verbosity quiet
29+
30+
publish:
31+
runs-on: ubuntu-latest
32+
needs: tests
33+
34+
steps:
35+
- uses: actions/checkout@v4
36+
with:
37+
fetch-depth: 0 # Fetch all history for all tags and branches
38+
- uses: actions/setup-dotnet@v4
39+
with:
40+
dotnet-version: 8.0.x
41+
- name: Get version tag
42+
# The latest tag for the selected branch.
43+
# Get it and strip off any leading 'v' from the version tag
44+
run: |
45+
Version=$(git describe --tags --abbrev=0 | sed 's/^v//')
46+
echo "VERSION=$Version" >> $GITHUB_ENV
47+
echo "Version: $Version"
48+
- name: Build and pack for publishing
49+
run: |
50+
dotnet restore
51+
dotnet build --configuration Release Ical.Net/Ical.Net.csproj -p:Version=${{env.VERSION}} -p:FileVersion=${{env.VERSION}}.${{github.run_number}} -p:IncludeSymbols=true -p:SymbolPackageFormat=snupkg -p:ContinuousIntegrationBuild=true
52+
dotnet pack --configuration Release Ical.Net/Ical.Net.csproj -p:Version=${{env.VERSION}} -p:IncludeSymbols=true -p:SymbolPackageFormat=snupkg --no-build -p:PackageVersion=${{env.VERSION}}.${{github.run_number}} -p:NuspecFile=Ical.Net.nuspec
53+
- name: Store artifacts
54+
uses: actions/upload-artifact@v4
55+
with:
56+
name: ICal.Net_pkg_${{env.VERSION}}.${{github.run_number}}
57+
path: |
58+
Ical.Net/bin/Release/**/*.nupkg
59+
Ical.Net/bin/Release/**/*.snupkg
60+
- name: Push package to NuGet
61+
# Does not fail, if the package already exists
62+
run: dotnet nuget push Ical.Net/bin/Release/Ical.Net.${{env.VERSION}}.nupkg --api-key ${{secrets.NUGET_API_KEY}} --source https://api.nuget.org/v3/index.json --skip-duplicate

.github/workflows/tests.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Tests
2+
3+
on:
4+
# Trigger the workflow on push or pull request,
5+
# but only for the main branch
6+
pull_request:
7+
branches:
8+
- main
9+
push:
10+
branches:
11+
- main
12+
13+
jobs:
14+
tests:
15+
runs-on: ubuntu-latest
16+
17+
steps:
18+
- name: Checkout repository
19+
uses: actions/checkout@v4
20+
with:
21+
fetch-depth: 0 # Fetch all history for all tags and branches
22+
- name: Setup .NET
23+
uses: actions/setup-dotnet@v4
24+
with:
25+
dotnet-version: |
26+
8.0.x
27+
6.0.x
28+
3.1.x
29+
- name: Restore dependencies
30+
run: dotnet restore
31+
- name: Build
32+
run: dotnet build --no-restore --configuration Release -p:nowarn=1591
33+
- name: Test
34+
run: dotnet test --no-build --configuration Release --verbosity quiet

0 commit comments

Comments
 (0)