@fossa-app/bridge 0.1.1 → 0.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.build.ps1 +17 -25
- package/.github/dependabot.yml +38 -38
- package/.github/release-drafter.yml +52 -52
- package/.github/workflows/cicd.yml +87 -106
- package/.github/workflows/lint.yml +34 -34
- package/.github/workflows/release-drafter.yml +27 -27
- package/Fossa.Bridge.slnx +7 -7
- package/LICENSE +21 -21
- package/README.md +42 -42
- package/build.ps1 +11 -11
- package/dotnet-tools.json +26 -26
- package/format.ps1 +11 -11
- package/gig.ps1 +15 -15
- package/global.json +6 -6
- package/lint.ps1 +20 -20
- package/pack.ps1 +11 -11
- package/package.json +21 -21
- package/publish.ps1 +11 -11
- package/restore.ps1 +11 -11
- package/src/Fossa.Bridge/Fossa.Bridge.fsproj +16 -16
- package/src/Fossa.Bridge/Models/ApiModels.fs +136 -136
- package/src/Fossa.Bridge/Services/UrlHelpers.fs +18 -18
- package/src/Fossa.Bridge/bin/Release/net8.0/Fossa.Bridge.deps.json +97 -97
- package/src/Fossa.Bridge/bin/Release/net8.0/Fossa.Bridge.fable-temp.deps.json +40 -40
- package/src/Fossa.Bridge/bin/Release/net8.0/Fossa.Bridge.xml +6 -6
- package/src/Fossa.Bridge/obj/Fossa.Bridge.fable-temp.csproj.nuget.dgspec.json +82 -80
- package/src/Fossa.Bridge/obj/Fossa.Bridge.fable-temp.csproj.nuget.g.props +24 -25
- package/src/Fossa.Bridge/obj/Fossa.Bridge.fable-temp.csproj.nuget.g.targets +1 -1
- package/src/Fossa.Bridge/obj/Fossa.Bridge.fsproj.nuget.dgspec.json +85 -83
- package/src/Fossa.Bridge/obj/Fossa.Bridge.fsproj.nuget.g.props +28 -29
- package/src/Fossa.Bridge/obj/Fossa.Bridge.fsproj.nuget.g.targets +1 -1
- package/src/Fossa.Bridge/obj/Release/{Fossa.Bridge.0.1.1.nuspec → Fossa.Bridge.0.1.4.nuspec} +19 -19
- package/src/Fossa.Bridge/obj/Release/net8.0/.NETCoreApp,Version=v8.0.AssemblyAttributes.cs +4 -4
- package/src/Fossa.Bridge/obj/Release/net8.0/.NETCoreApp,Version=v8.0.AssemblyAttributes.fs +3 -3
- package/src/Fossa.Bridge/obj/Release/net8.0/Fossa.Bridge.AssemblyInfo.fs +11 -11
- package/src/Fossa.Bridge/obj/Release/net8.0/Fossa.Bridge.fable-temp.AssemblyInfo.cs +23 -23
- package/src/Fossa.Bridge/obj/Release/net8.0/Fossa.Bridge.fable-temp.GeneratedMSBuildEditorConfig.editorconfig +17 -17
- package/src/Fossa.Bridge/obj/Release/net8.0/Fossa.Bridge.fable-temp.csproj.FileListAbsolute.txt +4 -4
- package/src/Fossa.Bridge/obj/Release/net8.0/Fossa.Bridge.fsproj.FileListAbsolute.txt +14 -14
- package/src/Fossa.Bridge/obj/Release/net8.0/Fossa.Bridge.sourcelink.json +1 -1
- package/src/Fossa.Bridge/obj/Release/net8.0/Fossa.Bridge.xml +6 -6
- package/src/Fossa.Bridge/obj/Release/net8.0/ILLink.Substitutions.xml +15 -15
- package/src/Fossa.Bridge/obj/project.assets.json +229 -228
- package/test.ps1 +11 -11
- package/tests/Fossa.Bridge.Tests/Fossa.Bridge.Tests.fsproj +18 -18
- package/tests/Fossa.Bridge.Tests/Main.fs +7 -7
- package/tests/Fossa.Bridge.Tests/UrlHelpersTests.fs +33 -33
- package/tests/Fossa.Bridge.Tests/bin/Release/net8.0/.msCoverageSourceRootsMapping_Fossa.Bridge.Tests +0 -0
- package/tests/Fossa.Bridge.Tests/bin/Release/net8.0/Fossa.Bridge.Tests +0 -0
- package/tests/Fossa.Bridge.Tests/bin/Release/net8.0/Fossa.Bridge.Tests.deps.json +805 -805
- package/tests/Fossa.Bridge.Tests/bin/Release/net8.0/Fossa.Bridge.Tests.runtimeconfig.json +13 -13
- package/tests/Fossa.Bridge.Tests/bin/Release/net8.0/Fossa.Bridge.xml +6 -6
- package/tests/Fossa.Bridge.Tests/obj/Fossa.Bridge.Tests.fsproj.nuget.dgspec.json +181 -173
- package/tests/Fossa.Bridge.Tests/obj/Fossa.Bridge.Tests.fsproj.nuget.g.props +29 -30
- package/tests/Fossa.Bridge.Tests/obj/Fossa.Bridge.Tests.fsproj.nuget.g.targets +10 -10
- package/tests/Fossa.Bridge.Tests/obj/Release/net8.0/.NETCoreApp,Version=v8.0.AssemblyAttributes.fs +3 -3
- package/tests/Fossa.Bridge.Tests/obj/Release/net8.0/Fossa.Bridge.Tests.AssemblyInfo.fs +10 -10
- package/tests/Fossa.Bridge.Tests/obj/Release/net8.0/Fossa.Bridge.Tests.fsproj.FileListAbsolute.txt +190 -191
- package/tests/Fossa.Bridge.Tests/obj/Release/net8.0/Fossa.Bridge.Tests.sourcelink.json +1 -1
- package/tests/Fossa.Bridge.Tests/obj/Release/net8.0/ILLink.Substitutions.xml +15 -15
- package/tests/Fossa.Bridge.Tests/obj/Release/net8.0/apphost +0 -0
- package/tests/Fossa.Bridge.Tests/obj/project.assets.json +2022 -2017
- package/trigger.ps1 +32 -32
- package/tsconfig.json +15 -15
- package/version.ps1 +11 -11
package/.build.ps1
CHANGED
|
@@ -76,13 +76,11 @@ Task EnsureCentralPackageVersions Clean, {
|
|
|
76
76
|
|
|
77
77
|
$violations = @()
|
|
78
78
|
|
|
79
|
-
foreach ($projectFile in $projectFiles)
|
|
80
|
-
|
|
81
|
-
try
|
|
82
|
-
{
|
|
79
|
+
foreach ($projectFile in $projectFiles) {
|
|
80
|
+
try {
|
|
83
81
|
[xml]$xml = Get-Content $projectFile.FullName -Raw
|
|
84
|
-
}
|
|
85
|
-
{
|
|
82
|
+
}
|
|
83
|
+
catch {
|
|
86
84
|
throw "Failed to parse XML: $($projectFile.FullName)"
|
|
87
85
|
}
|
|
88
86
|
|
|
@@ -91,8 +89,7 @@ Task EnsureCentralPackageVersions Clean, {
|
|
|
91
89
|
|
|
92
90
|
$nodes = $xml.SelectNodes('//*[@VersionOverride]', $ns)
|
|
93
91
|
|
|
94
|
-
foreach ($node in $nodes)
|
|
95
|
-
{
|
|
92
|
+
foreach ($node in $nodes) {
|
|
96
93
|
$violations += [PSCustomObject]@{
|
|
97
94
|
File = $projectFile.FullName
|
|
98
95
|
Node = $node.Name
|
|
@@ -101,8 +98,7 @@ Task EnsureCentralPackageVersions Clean, {
|
|
|
101
98
|
}
|
|
102
99
|
}
|
|
103
100
|
|
|
104
|
-
if ($violations.Count -gt 0)
|
|
105
|
-
{
|
|
101
|
+
if ($violations.Count -gt 0) {
|
|
106
102
|
throw "VersionOverride attributes are not allowed. File: $($violations[0].File) Node: <$($violations[0].Node)>"
|
|
107
103
|
}
|
|
108
104
|
}
|
|
@@ -164,11 +160,10 @@ Task Format Restore, FormatXmlFiles, FormatFantomas
|
|
|
164
160
|
# Synopsis: Estimate Next Version
|
|
165
161
|
Task EstimateVersion Restore, {
|
|
166
162
|
$state = Import-Clixml -Path ".\.trash\$Instance\state.clixml"
|
|
167
|
-
if ($Version)
|
|
168
|
-
{
|
|
163
|
+
if ($Version) {
|
|
169
164
|
$state.NextVersion = [System.Management.Automation.SemanticVersion]$Version
|
|
170
|
-
}
|
|
171
|
-
{
|
|
165
|
+
}
|
|
166
|
+
else {
|
|
172
167
|
$gitversion = Exec { dotnet tool run dotnet-gitversion } | ConvertFrom-Json
|
|
173
168
|
$state.NextVersion = [System.Management.Automation.SemanticVersion]::Parse($gitversion.SemVer)
|
|
174
169
|
}
|
|
@@ -205,8 +200,7 @@ Task FunctionalTest Build, {
|
|
|
205
200
|
|
|
206
201
|
# Synopsis: Integration Test
|
|
207
202
|
Task IntegrationTest Build, {
|
|
208
|
-
if (-not $env:CI)
|
|
209
|
-
{
|
|
203
|
+
if (-not $env:CI) {
|
|
210
204
|
}
|
|
211
205
|
}
|
|
212
206
|
|
|
@@ -281,16 +275,15 @@ Task PublishNuGet PackNuGet, {
|
|
|
281
275
|
$state = Import-Clixml -Path ".\.trash\$Instance\state.clixml"
|
|
282
276
|
$nugetPackagePath = $state.NuGetPackagePath
|
|
283
277
|
|
|
284
|
-
if ($null -eq $env:NUGET_API_KEY)
|
|
285
|
-
{
|
|
278
|
+
if ($null -eq $env:NUGET_API_KEY) {
|
|
286
279
|
Import-Module -Name Microsoft.PowerShell.SecretManagement
|
|
287
280
|
$apiKey = Get-Secret -Name 'Fossa-Bridge-NuGet-API-Key' -AsPlainText
|
|
288
|
-
}
|
|
289
|
-
{
|
|
281
|
+
}
|
|
282
|
+
else {
|
|
290
283
|
$apiKey = $env:NUGET_API_KEY
|
|
291
284
|
}
|
|
292
285
|
|
|
293
|
-
|
|
286
|
+
Exec { dotnet nuget push $nugetPackagePath --source https://api.nuget.org/v3/index.json --api-key $apiKey }
|
|
294
287
|
}
|
|
295
288
|
|
|
296
289
|
# Synopsis: Publish NPM package
|
|
@@ -298,12 +291,11 @@ Task PublishNPM PackNPM, {
|
|
|
298
291
|
$state = Import-Clixml -Path ".\.trash\$Instance\state.clixml"
|
|
299
292
|
$npmPackagePath = $state.NPMPackagePath
|
|
300
293
|
|
|
301
|
-
if ($null -eq $env:NPM_TOKEN)
|
|
302
|
-
{
|
|
294
|
+
if ($null -eq $env:NPM_TOKEN) {
|
|
303
295
|
Import-Module -Name Microsoft.PowerShell.SecretManagement
|
|
304
296
|
$token = Get-Secret -Name 'Fossa-Bridge-NPM-Token' -AsPlainText
|
|
305
|
-
}
|
|
306
|
-
{
|
|
297
|
+
}
|
|
298
|
+
else {
|
|
307
299
|
$token = $env:NPM_TOKEN
|
|
308
300
|
}
|
|
309
301
|
|
package/.github/dependabot.yml
CHANGED
|
@@ -1,38 +1,38 @@
|
|
|
1
|
-
version: 2
|
|
2
|
-
updates:
|
|
3
|
-
- package-ecosystem: nuget
|
|
4
|
-
directory: "/"
|
|
5
|
-
labels:
|
|
6
|
-
- "dependencies"
|
|
7
|
-
- "maintenance"
|
|
8
|
-
schedule:
|
|
9
|
-
interval: daily
|
|
10
|
-
open-pull-requests-limit: 10
|
|
11
|
-
reviewers:
|
|
12
|
-
- tiksn
|
|
13
|
-
assignees:
|
|
14
|
-
- tiksn
|
|
15
|
-
- package-ecosystem: npm
|
|
16
|
-
directory: '/'
|
|
17
|
-
labels:
|
|
18
|
-
- 'dependencies'
|
|
19
|
-
- 'maintenance'
|
|
20
|
-
schedule:
|
|
21
|
-
interval: monthly
|
|
22
|
-
open-pull-requests-limit: 10
|
|
23
|
-
reviewers:
|
|
24
|
-
- tiksn
|
|
25
|
-
assignees:
|
|
26
|
-
- tiksn
|
|
27
|
-
- package-ecosystem: "github-actions"
|
|
28
|
-
directory: "/"
|
|
29
|
-
labels:
|
|
30
|
-
- "dependencies"
|
|
31
|
-
- "maintenance"
|
|
32
|
-
open-pull-requests-limit: 10
|
|
33
|
-
schedule:
|
|
34
|
-
interval: "daily"
|
|
35
|
-
reviewers:
|
|
36
|
-
- "tiksn"
|
|
37
|
-
assignees:
|
|
38
|
-
- "tiksn"
|
|
1
|
+
version: 2
|
|
2
|
+
updates:
|
|
3
|
+
- package-ecosystem: nuget
|
|
4
|
+
directory: "/"
|
|
5
|
+
labels:
|
|
6
|
+
- "dependencies"
|
|
7
|
+
- "maintenance"
|
|
8
|
+
schedule:
|
|
9
|
+
interval: daily
|
|
10
|
+
open-pull-requests-limit: 10
|
|
11
|
+
reviewers:
|
|
12
|
+
- tiksn
|
|
13
|
+
assignees:
|
|
14
|
+
- tiksn
|
|
15
|
+
- package-ecosystem: npm
|
|
16
|
+
directory: '/'
|
|
17
|
+
labels:
|
|
18
|
+
- 'dependencies'
|
|
19
|
+
- 'maintenance'
|
|
20
|
+
schedule:
|
|
21
|
+
interval: monthly
|
|
22
|
+
open-pull-requests-limit: 10
|
|
23
|
+
reviewers:
|
|
24
|
+
- tiksn
|
|
25
|
+
assignees:
|
|
26
|
+
- tiksn
|
|
27
|
+
- package-ecosystem: "github-actions"
|
|
28
|
+
directory: "/"
|
|
29
|
+
labels:
|
|
30
|
+
- "dependencies"
|
|
31
|
+
- "maintenance"
|
|
32
|
+
open-pull-requests-limit: 10
|
|
33
|
+
schedule:
|
|
34
|
+
interval: "daily"
|
|
35
|
+
reviewers:
|
|
36
|
+
- "tiksn"
|
|
37
|
+
assignees:
|
|
38
|
+
- "tiksn"
|
|
@@ -1,52 +1,52 @@
|
|
|
1
|
-
# release-drafter automatically creates a draft release for you each time you complete a PR in the main branch.
|
|
2
|
-
# It uses GitHub labels to categorize changes (See categories) and draft the release.
|
|
3
|
-
# release-drafter also generates a version for your release based on GitHub labels. You can add a label of 'major',
|
|
4
|
-
# 'minor' or 'patch' to determine which number in the version to increment.
|
|
5
|
-
# You may need to add these labels yourself.
|
|
6
|
-
# See https://github.com/release-drafter/release-drafter
|
|
7
|
-
name-template: "$RESOLVED_VERSION"
|
|
8
|
-
tag-template: "$RESOLVED_VERSION"
|
|
9
|
-
change-template: "- $TITLE by @$AUTHOR (#$NUMBER)"
|
|
10
|
-
no-changes-template: "- No changes"
|
|
11
|
-
categories:
|
|
12
|
-
- title: "📚 Documentation"
|
|
13
|
-
labels:
|
|
14
|
-
- "documentation"
|
|
15
|
-
- title: "🚀 New Features"
|
|
16
|
-
labels:
|
|
17
|
-
- "enhancement"
|
|
18
|
-
- title: "🐛 Bug Fixes"
|
|
19
|
-
labels:
|
|
20
|
-
- "bug"
|
|
21
|
-
- title: "🧰 Maintenance"
|
|
22
|
-
labels:
|
|
23
|
-
- "maintenance"
|
|
24
|
-
version-resolver:
|
|
25
|
-
major:
|
|
26
|
-
labels:
|
|
27
|
-
- "major"
|
|
28
|
-
minor:
|
|
29
|
-
labels:
|
|
30
|
-
- "minor"
|
|
31
|
-
patch:
|
|
32
|
-
labels:
|
|
33
|
-
- "patch"
|
|
34
|
-
default: patch
|
|
35
|
-
template: |
|
|
36
|
-
$CHANGES
|
|
37
|
-
|
|
38
|
-
## 👨🏼💻 Contributors
|
|
39
|
-
|
|
40
|
-
$CONTRIBUTORS
|
|
41
|
-
autolabeler:
|
|
42
|
-
- label: "documentation"
|
|
43
|
-
files:
|
|
44
|
-
- "**/*.md"
|
|
45
|
-
- label: "enhancement"
|
|
46
|
-
files:
|
|
47
|
-
- "Source/**/*"
|
|
48
|
-
- label: "maintenance"
|
|
49
|
-
files:
|
|
50
|
-
- ".github/**/*"
|
|
51
|
-
- "Images/**/*"
|
|
52
|
-
- "Tests/**/*"
|
|
1
|
+
# release-drafter automatically creates a draft release for you each time you complete a PR in the main branch.
|
|
2
|
+
# It uses GitHub labels to categorize changes (See categories) and draft the release.
|
|
3
|
+
# release-drafter also generates a version for your release based on GitHub labels. You can add a label of 'major',
|
|
4
|
+
# 'minor' or 'patch' to determine which number in the version to increment.
|
|
5
|
+
# You may need to add these labels yourself.
|
|
6
|
+
# See https://github.com/release-drafter/release-drafter
|
|
7
|
+
name-template: "$RESOLVED_VERSION"
|
|
8
|
+
tag-template: "$RESOLVED_VERSION"
|
|
9
|
+
change-template: "- $TITLE by @$AUTHOR (#$NUMBER)"
|
|
10
|
+
no-changes-template: "- No changes"
|
|
11
|
+
categories:
|
|
12
|
+
- title: "📚 Documentation"
|
|
13
|
+
labels:
|
|
14
|
+
- "documentation"
|
|
15
|
+
- title: "🚀 New Features"
|
|
16
|
+
labels:
|
|
17
|
+
- "enhancement"
|
|
18
|
+
- title: "🐛 Bug Fixes"
|
|
19
|
+
labels:
|
|
20
|
+
- "bug"
|
|
21
|
+
- title: "🧰 Maintenance"
|
|
22
|
+
labels:
|
|
23
|
+
- "maintenance"
|
|
24
|
+
version-resolver:
|
|
25
|
+
major:
|
|
26
|
+
labels:
|
|
27
|
+
- "major"
|
|
28
|
+
minor:
|
|
29
|
+
labels:
|
|
30
|
+
- "minor"
|
|
31
|
+
patch:
|
|
32
|
+
labels:
|
|
33
|
+
- "patch"
|
|
34
|
+
default: patch
|
|
35
|
+
template: |
|
|
36
|
+
$CHANGES
|
|
37
|
+
|
|
38
|
+
## 👨🏼💻 Contributors
|
|
39
|
+
|
|
40
|
+
$CONTRIBUTORS
|
|
41
|
+
autolabeler:
|
|
42
|
+
- label: "documentation"
|
|
43
|
+
files:
|
|
44
|
+
- "**/*.md"
|
|
45
|
+
- label: "enhancement"
|
|
46
|
+
files:
|
|
47
|
+
- "Source/**/*"
|
|
48
|
+
- label: "maintenance"
|
|
49
|
+
files:
|
|
50
|
+
- ".github/**/*"
|
|
51
|
+
- "Images/**/*"
|
|
52
|
+
- "Tests/**/*"
|
|
@@ -1,106 +1,87 @@
|
|
|
1
|
-
name: CICD
|
|
2
|
-
|
|
3
|
-
on:
|
|
4
|
-
push:
|
|
5
|
-
branches:
|
|
6
|
-
- main
|
|
7
|
-
pull_request:
|
|
8
|
-
release:
|
|
9
|
-
types:
|
|
10
|
-
- published
|
|
11
|
-
workflow_dispatch:
|
|
12
|
-
|
|
13
|
-
permissions: read-all
|
|
14
|
-
|
|
15
|
-
env:
|
|
16
|
-
DOTNET_NOLOGO: true
|
|
17
|
-
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true
|
|
18
|
-
DOTNET_CLI_TELEMETRY_OPTOUT: true
|
|
19
|
-
|
|
20
|
-
jobs:
|
|
21
|
-
ci:
|
|
22
|
-
name: CI
|
|
23
|
-
runs-on: ubuntu-latest
|
|
24
|
-
steps:
|
|
25
|
-
- name: "Checkout"
|
|
26
|
-
uses: actions/checkout@v6
|
|
27
|
-
with:
|
|
28
|
-
lfs: true
|
|
29
|
-
fetch-depth: 0
|
|
30
|
-
- name:
|
|
31
|
-
uses:
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
- name: "
|
|
42
|
-
shell: pwsh
|
|
43
|
-
run:
|
|
44
|
-
- name:
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
name: ".trash"
|
|
89
|
-
path: "./.trash"
|
|
90
|
-
- name: Set up Docker with containerd
|
|
91
|
-
uses: docker/setup-docker-action@v4
|
|
92
|
-
with:
|
|
93
|
-
daemon-config: |
|
|
94
|
-
{
|
|
95
|
-
"features": {
|
|
96
|
-
"containerd-snapshotter": true
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
- name: "Install InvokeBuild Module"
|
|
100
|
-
shell: pwsh
|
|
101
|
-
run: Install-Module -Name InvokeBuild -Force
|
|
102
|
-
- name: "Publish"
|
|
103
|
-
env:
|
|
104
|
-
DOCKER_ACCESS_TOKEN: ${{secrets.DOCKER_ACCESS_TOKEN}}
|
|
105
|
-
shell: pwsh
|
|
106
|
-
run: .\publish.ps1 -Instance ${{github.run_id}}
|
|
1
|
+
name: CICD
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches:
|
|
6
|
+
- main
|
|
7
|
+
pull_request:
|
|
8
|
+
release:
|
|
9
|
+
types:
|
|
10
|
+
- published
|
|
11
|
+
workflow_dispatch:
|
|
12
|
+
|
|
13
|
+
permissions: read-all
|
|
14
|
+
|
|
15
|
+
env:
|
|
16
|
+
DOTNET_NOLOGO: true
|
|
17
|
+
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true
|
|
18
|
+
DOTNET_CLI_TELEMETRY_OPTOUT: true
|
|
19
|
+
|
|
20
|
+
jobs:
|
|
21
|
+
ci:
|
|
22
|
+
name: CI
|
|
23
|
+
runs-on: ubuntu-latest
|
|
24
|
+
steps:
|
|
25
|
+
- name: "Checkout"
|
|
26
|
+
uses: actions/checkout@v6
|
|
27
|
+
with:
|
|
28
|
+
lfs: true
|
|
29
|
+
fetch-depth: 0
|
|
30
|
+
- name: "Install .NET Core SDK"
|
|
31
|
+
uses: actions/setup-dotnet@v5.1.0
|
|
32
|
+
- name: "Install InvokeBuild Module"
|
|
33
|
+
shell: pwsh
|
|
34
|
+
run: Install-Module -Name InvokeBuild -Force
|
|
35
|
+
- name: "Restore"
|
|
36
|
+
shell: pwsh
|
|
37
|
+
run: .\restore.ps1 -Instance ${{github.run_id}}
|
|
38
|
+
- name: "Format"
|
|
39
|
+
shell: pwsh
|
|
40
|
+
run: .\format.ps1 -Instance ${{github.run_id}}
|
|
41
|
+
- name: "Version"
|
|
42
|
+
shell: pwsh
|
|
43
|
+
run: .\version.ps1 -Instance ${{github.run_id}}
|
|
44
|
+
- name: "Build"
|
|
45
|
+
shell: pwsh
|
|
46
|
+
run: .\build.ps1 -Instance ${{github.run_id}}
|
|
47
|
+
- name: "Test"
|
|
48
|
+
shell: pwsh
|
|
49
|
+
run: .\test.ps1 -Instance ${{github.run_id}}
|
|
50
|
+
- name: "Pack"
|
|
51
|
+
shell: pwsh
|
|
52
|
+
run: .\pack.ps1 -Instance ${{github.run_id}}
|
|
53
|
+
- name: "Publish Artefacts"
|
|
54
|
+
uses: actions/upload-artifact@v7.0.0
|
|
55
|
+
with:
|
|
56
|
+
name: .trash
|
|
57
|
+
path: ".trash"
|
|
58
|
+
include-hidden-files: true
|
|
59
|
+
|
|
60
|
+
cd:
|
|
61
|
+
name: CD
|
|
62
|
+
needs: ci
|
|
63
|
+
if: github.event_name == 'release'
|
|
64
|
+
environment:
|
|
65
|
+
name: "Release"
|
|
66
|
+
url: "https://github.com/${{ github.repository }}/releases/tag/${{ github.ref_name }}"
|
|
67
|
+
runs-on: ubuntu-latest
|
|
68
|
+
steps:
|
|
69
|
+
- name: "Checkout"
|
|
70
|
+
uses: actions/checkout@v6
|
|
71
|
+
with:
|
|
72
|
+
lfs: true
|
|
73
|
+
fetch-depth: 0
|
|
74
|
+
- name: "Download Artefact"
|
|
75
|
+
uses: actions/download-artifact@v8.0.0
|
|
76
|
+
with:
|
|
77
|
+
name: ".trash"
|
|
78
|
+
path: "./.trash"
|
|
79
|
+
- name: "Install InvokeBuild Module"
|
|
80
|
+
shell: pwsh
|
|
81
|
+
run: Install-Module -Name InvokeBuild -Force
|
|
82
|
+
- name: "Publish"
|
|
83
|
+
env:
|
|
84
|
+
NUGET_API_KEY: ${{secrets.NUGET_API_KEY}}
|
|
85
|
+
NPM_TOKEN: ${{secrets.NPM_TOKEN}}
|
|
86
|
+
shell: pwsh
|
|
87
|
+
run: .\publish.ps1 -Instance ${{github.run_id}}
|
|
@@ -1,34 +1,34 @@
|
|
|
1
|
-
name: Lint
|
|
2
|
-
|
|
3
|
-
on:
|
|
4
|
-
push:
|
|
5
|
-
branches:
|
|
6
|
-
- main
|
|
7
|
-
pull_request:
|
|
8
|
-
|
|
9
|
-
permissions: read-all
|
|
10
|
-
|
|
11
|
-
env:
|
|
12
|
-
DOTNET_NOLOGO: true
|
|
13
|
-
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true
|
|
14
|
-
DOTNET_CLI_TELEMETRY_OPTOUT: true
|
|
15
|
-
|
|
16
|
-
jobs:
|
|
17
|
-
lint:
|
|
18
|
-
name: Lint
|
|
19
|
-
runs-on: ubuntu-latest
|
|
20
|
-
|
|
21
|
-
permissions:
|
|
22
|
-
statuses: write
|
|
23
|
-
|
|
24
|
-
steps:
|
|
25
|
-
- name: Checkout code
|
|
26
|
-
uses: actions/checkout@v6
|
|
27
|
-
with:
|
|
28
|
-
fetch-depth: 0
|
|
29
|
-
|
|
30
|
-
- name: Super-linter
|
|
31
|
-
uses: super-linter/super-linter@v8.5.0
|
|
32
|
-
env:
|
|
33
|
-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
34
|
-
VALIDATE_JSCPD: false
|
|
1
|
+
name: Lint
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches:
|
|
6
|
+
- main
|
|
7
|
+
pull_request:
|
|
8
|
+
|
|
9
|
+
permissions: read-all
|
|
10
|
+
|
|
11
|
+
env:
|
|
12
|
+
DOTNET_NOLOGO: true
|
|
13
|
+
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true
|
|
14
|
+
DOTNET_CLI_TELEMETRY_OPTOUT: true
|
|
15
|
+
|
|
16
|
+
jobs:
|
|
17
|
+
lint:
|
|
18
|
+
name: Lint
|
|
19
|
+
runs-on: ubuntu-latest
|
|
20
|
+
|
|
21
|
+
permissions:
|
|
22
|
+
statuses: write
|
|
23
|
+
|
|
24
|
+
steps:
|
|
25
|
+
- name: Checkout code
|
|
26
|
+
uses: actions/checkout@v6
|
|
27
|
+
with:
|
|
28
|
+
fetch-depth: 0
|
|
29
|
+
|
|
30
|
+
- name: Super-linter
|
|
31
|
+
uses: super-linter/super-linter@v8.5.0
|
|
32
|
+
env:
|
|
33
|
+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
34
|
+
VALIDATE_JSCPD: false
|
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
name: Release Drafter
|
|
2
|
-
|
|
3
|
-
on:
|
|
4
|
-
push:
|
|
5
|
-
branches:
|
|
6
|
-
- main
|
|
7
|
-
pull_request_target:
|
|
8
|
-
types:
|
|
9
|
-
- edited
|
|
10
|
-
- opened
|
|
11
|
-
- reopened
|
|
12
|
-
- synchronize
|
|
13
|
-
workflow_dispatch:
|
|
14
|
-
|
|
15
|
-
permissions: read-all
|
|
16
|
-
|
|
17
|
-
jobs:
|
|
18
|
-
update_release_draft:
|
|
19
|
-
permissions:
|
|
20
|
-
contents: write
|
|
21
|
-
pull-requests: write
|
|
22
|
-
runs-on: ubuntu-latest
|
|
23
|
-
steps:
|
|
24
|
-
- name: "Draft Release"
|
|
25
|
-
uses: release-drafter/release-drafter@v6.2.0
|
|
26
|
-
env:
|
|
27
|
-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
1
|
+
name: Release Drafter
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches:
|
|
6
|
+
- main
|
|
7
|
+
pull_request_target:
|
|
8
|
+
types:
|
|
9
|
+
- edited
|
|
10
|
+
- opened
|
|
11
|
+
- reopened
|
|
12
|
+
- synchronize
|
|
13
|
+
workflow_dispatch:
|
|
14
|
+
|
|
15
|
+
permissions: read-all
|
|
16
|
+
|
|
17
|
+
jobs:
|
|
18
|
+
update_release_draft:
|
|
19
|
+
permissions:
|
|
20
|
+
contents: write
|
|
21
|
+
pull-requests: write
|
|
22
|
+
runs-on: ubuntu-latest
|
|
23
|
+
steps:
|
|
24
|
+
- name: "Draft Release"
|
|
25
|
+
uses: release-drafter/release-drafter@v6.2.0
|
|
26
|
+
env:
|
|
27
|
+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
package/Fossa.Bridge.slnx
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
<Solution>
|
|
2
|
-
<Folder Name="/src/">
|
|
3
|
-
<Project Path="src/Fossa.Bridge/Fossa.Bridge.fsproj" />
|
|
4
|
-
</Folder>
|
|
5
|
-
<Folder Name="/tests/">
|
|
6
|
-
<Project Path="tests/Fossa.Bridge.Tests/Fossa.Bridge.Tests.fsproj" />
|
|
7
|
-
</Folder>
|
|
1
|
+
<Solution>
|
|
2
|
+
<Folder Name="/src/">
|
|
3
|
+
<Project Path="src/Fossa.Bridge/Fossa.Bridge.fsproj" />
|
|
4
|
+
</Folder>
|
|
5
|
+
<Folder Name="/tests/">
|
|
6
|
+
<Project Path="tests/Fossa.Bridge.Tests/Fossa.Bridge.Tests.fsproj" />
|
|
7
|
+
</Folder>
|
|
8
8
|
</Solution>
|
package/LICENSE
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2026 fossa-app
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 fossa-app
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|