Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Empty file added .cliffignore
Empty file.
7 changes: 7 additions & 0 deletions .config/dotnet-tools.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,13 @@
"fable"
],
"rollForward": false
},
"fantomas": {
"version": "7.0.3",
"commands": [
"fantomas"
],
"rollForward": false
}
}
}
23 changes: 23 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
; EditorConfig helps developers define and maintain consistent
; coding styles between different editors and IDEs.

; For more visit http://editorconfig.org.
root = true

; Choose between lf or rf on "end_of_line" property
[*]
indent_style = space
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true

[{*.fs,*.fsx}]
indent_size = 4
max_line_length=150
fsharp_max_infix_operator_expression=10
fsharp_keep_max_number_of_blank_lines=3
fsharp_max_function_binding_width=10
fsharp_multiline_block_brackets_on_same_column=true
fsharp_experimental_stroustrup_style=true
fsharp_space_before_uppercase_invocation=true
39 changes: 7 additions & 32 deletions .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,29 +18,16 @@ concurrency:
cancel-in-progress: true

jobs:
# fantomas-check:
# runs-on: ubuntu-22.04
# steps:
# - name: Checkout repository
# uses: actions/checkout@v4

# - name: Setup .NET
# uses: actions/setup-dotnet@v3
# with:
# dotnet-version: ${{ env.DOTNET_VERSION }}

# - name: Tool Restore
# run: dotnet tool restore

# - name: Lint
# run: dotnet fantomas -r --check .

build:
runs-on: ubuntu-22.04
# needs: ['fantomas-check']
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Set up git-cliff
uses: kenji-miyake/setup-git-cliff@v1

# workaround for https://github.com/actions/runner/issues/2033
- name: ownership workaround
Expand All @@ -51,17 +38,5 @@ jobs:
with:
dotnet-version: ${{ env.DOTNET_VERSION }}

- name: Restore nuget dependencies
run: dotnet restore Partas.Solid.sln

- name: Compile the main solution
run: dotnet build Partas.Solid.sln --no-restore

- name: Test the main solution
run: dotnet test Partas.Solid.sln --no-restore --no-build

- name: Restore Solid nuget dependencies
run: dotnet restore Partas.Solid.sln

- name: Compile Solid solution
run: dotnet build Partas.Solid.sln --no-restore
- name: Run test script
run: dotnet fsi ./build.fsx
36 changes: 36 additions & 0 deletions .github/workflows/package.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: package.yml
on:
release:
types:
- published
workflow_dispatch:

env:
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true
DOTNET_CLI_TELEMETRY_OPTOUT: true
DOTNET_VERSION: 9.0.101
NUGET_API_KEY: ${{ secrets.NUGET_KEY }}

jobs:
package:
runs-on: ubuntu-22.04
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Set up git-cliff
uses: kenji-miyake/setup-git-cliff@v1

# workaround for https://github.com/actions/runner/issues/2033
- name: ownership workaround
run: git config --global --add safe.directory '*'

- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: ${{ env.DOTNET_VERSION }}

- name: Publish nuget package
run: dotnet fsi ./build.fsx target publish --nuget-api-key ${{ env.NUGET_API_KEY }}
5 changes: 2 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,8 @@ obj/
/packages/
riderModule.iml
/_ReSharper.Caches/
/Partas.Solid.sln
/ScratchTests
.fake
*.fs.jsx
*.fs.js
.idea
.idea
/ScratchTests/
15 changes: 15 additions & 0 deletions Common/AssemblyInfo.fs
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
// Auto-Generated by FAKE; do not edit
namespace System
open System.Reflection

[<assembly: AssemblyTitleAttribute("Partas.Solid")>]
[<assembly: AssemblyProductAttribute("Partas.Solid")>]
[<assembly: AssemblyVersionAttribute("1.1.5")>]
[<assembly: AssemblyFileVersionAttribute("1.1.5")>]
do ()

module internal AssemblyVersionInformation =
let [<Literal>] AssemblyTitle = "Partas.Solid"
let [<Literal>] AssemblyProduct = "Partas.Solid"
let [<Literal>] AssemblyVersion = "1.1.5"
let [<Literal>] AssemblyFileVersion = "1.1.5"
4 changes: 3 additions & 1 deletion Partas.Solid.FablePlugin/Partas.Solid.FablePlugin.fsproj
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,11 @@
<Version>1.1.5</Version>
<PackageVersion>1.1.5</PackageVersion>
</PropertyGroup>

<ItemGroup>
<None Include="../README.md" Pack="true" PackagePath="\" />
<Compile Include="../Common/AssemblyInfo.fs">
<Link>AssemblyInfo.fs</Link>
</Compile>
<Compile Include="Types.fs" />
<Compile Include="Utils.fs" />
<Compile Include="Spec.fs" />
Expand Down
Loading
Loading