Skip to content

Commit 8493c57

Browse files
committed
Fix build project for CI
1 parent 513cbfa commit 8493c57

112 files changed

Lines changed: 8903 additions & 10210 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.

.config/dotnet-tools.json

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
{
2+
"version": 1,
3+
"isRoot": true,
4+
"tools": {
5+
"sourcelink": {
6+
"version": "3.1.1",
7+
"commands": [
8+
"sourcelink"
9+
]
10+
},
11+
"dotnet-reportgenerator-globaltool": {
12+
"version": "4.8.13",
13+
"commands": [
14+
"reportgenerator"
15+
]
16+
},
17+
"paket": {
18+
"version": "6.2.1",
19+
"commands": [
20+
"paket"
21+
]
22+
},
23+
"fsharp-analyzers": {
24+
"version": "0.11.0",
25+
"commands": [
26+
"fsharp-analyzers"
27+
]
28+
},
29+
"fantomas": {
30+
"version": "5.0.0",
31+
"commands": [
32+
"fantomas"
33+
]
34+
}
35+
}
36+
}

.devcontainer/Dockerfile

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
FROM debian:buster-slim
2+
3+
4+
RUN apt-get update \
5+
&& apt-get install -y --no-install-recommends \
6+
ca-certificates \
7+
\
8+
# .NET Core dependencies
9+
libc6 \
10+
libgcc1 \
11+
libgssapi-krb5-2 \
12+
libicu63 \
13+
libssl1.1 \
14+
libstdc++6 \
15+
zlib1g \
16+
curl \
17+
git \
18+
procps \
19+
wget \
20+
&& rm -rf /var/lib/apt/lists/*
21+
22+
23+
ENV \
24+
# Enable detection of running in a container
25+
DOTNET_RUNNING_IN_CONTAINER=true \
26+
DOTNET_INSTALL_DIR=/usr/share/dotnet/ \
27+
DOTNET_ROOT=/usr/share/dotnet/
28+
29+
COPY ./.devcontainer/install-dotnets.sh global.json* ./
30+
31+
RUN /bin/bash install-dotnets.sh
32+
33+
ENV PATH="$DOTNET_ROOT:${PATH}"
34+
RUN ln -s /usr/share/dotnet/dotnet /usr/bin/dotnet
35+
36+
RUN dotnet --info
37+
38+
# Copy endpoint specific user settings into container to specify
39+
# .NET Core should be used as the runtime.
40+
COPY ./.devcontainer/settings.vscode.json /root/.vscode-remote/data/Machine/settings.json

.devcontainer/devcontainer.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"name": "dotnet",
3+
// Set the build context one level higher so we can grab metadata like global.json
4+
"context": "..",
5+
"dockerFile": "Dockerfile",
6+
"forwardPorts": [
7+
0
8+
],
9+
"extensions": [
10+
"ionide.ionide-fsharp",
11+
"ms-dotnettools.csharp",
12+
"editorconfig.editorconfig",
13+
"ionide.ionide-paket",
14+
"ionide.ionide-fake"
15+
]
16+
}

.devcontainer/install-dotnets.sh

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
#!/bin/bash
2+
3+
# downloads installer script https://docs.microsoft.com/en-us/dotnet/core/tools/dotnet-install-script
4+
curl -SL --output dotnet-install.sh https://dot.net/v1/dotnet-install.sh
5+
6+
7+
# Attempt to install via global.json first
8+
FILE=global.json
9+
if test -f "$FILE"; then
10+
echo "installing dotnet via $FILE"
11+
/bin/bash dotnet-install.sh --verbose --jsonfile $FILE
12+
fi
13+
14+
15+
# Add additional versions if required
16+
DOTNET_VERSIONS=(
17+
# 'latest'
18+
#'5.0.100'
19+
)
20+
for version in ${DOTNET_VERSIONS[@]}; do
21+
echo "installing dotnet $version"
22+
/bin/bash dotnet-install.sh --verbose --version $version
23+
done

.devcontainer/settings.vscode.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"FSharp.fsacRuntime":"netcore",
3+
"FSharp.enableAnalyzers": true,
4+
"FSharp.analyzersPath": [
5+
"./packages/analyzers"
6+
]
7+
}

.editorconfig

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,20 @@ root = true
1111
insert_final_newline = true
1212
indent_style = space
1313
indent_size = 4
14+
end_of_line = lf
1415

1516
[*.{fs,fsi,fsx,config}]
17+
# https://fsprojects.github.io/fantomas/docs/end-users/Configuration.html
1618
charset = utf-8
1719
trim_trailing_whitespace = true
20+
max_line_length=100
21+
fsharp_multiline_block_brackets_on_same_column=true
22+
fsharp_experimental_stroustrup_style=true
23+
fsharp_keep_max_number_of_blank_lines=2
24+
fsharp_max_array_or_list_number_of_items=1
25+
fsharp_array_or_list_multiline_formatter=number_of_items
26+
fsharp_max_infix_operator_expression=10
27+
fsharp_multi_line_lambda_closing_newline=true
1828

1929
[paket.*]
2030
trim_trailing_whitespace = true

.git-blame-ignore-revs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# This file contains a list of git hashes of revisions to be ignored by git
2+
# These revisions are considered "unimportant" in
3+
# that they are unlikely to be what you are interested in when blaming.
4+
# Like formatting with Fantomas
5+
# https://docs.github.com/en/repositories/working-with-files/using-files/viewing-a-file#ignore-commits-in-the-blame-view
6+
# Add formatting commits here

.github/ISSUE_TEMPLATE.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ Please insert a description of your problem or question.
66

77
Please add any error logs or screenshots if available.
88

9-
## Failing test, failing github repo, or reproduction steps
9+
## Failing test, failing GitHub repo, or reproduction steps
1010

11-
Please add either a failing test, a github repo of the problem or detailed reproduction steps.
11+
Please add either a failing test, a GitHub repo of the problem or detailed reproduction steps.
1212

1313
## Expected Behavior
1414

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
---
2+
name: Bug report
3+
about: Create a report to help us improve
4+
5+
---
6+
7+
**Describe the bug**
8+
A clear and concise description of what the bug is.
9+
10+
**To Reproduce**
11+
Steps to reproduce the behavior:
12+
1. Go to '...'
13+
2. Click on '....'
14+
3. Scroll down to '....'
15+
4. See error
16+
17+
**Expected behavior**
18+
A clear and concise description of what you expected to happen.
19+
20+
**Screenshots**
21+
If applicable, add screenshots to help explain your problem.
22+
23+
**Desktop (please complete the following information):**
24+
- OS: [e.g. iOS]
25+
- Browser [e.g. chrome, safari]
26+
- Version [e.g. 22]
27+
28+
**Smartphone (please complete the following information):**
29+
- Device: [e.g. iPhone6]
30+
- OS: [e.g. iOS8.1]
31+
- Browser [e.g. stock browser, safari]
32+
- Version [e.g. 22]
33+
34+
**Additional context**
35+
Add any other context about the problem here.
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
---
2+
name: Feature request
3+
about: Suggest an idea for this project
4+
5+
---
6+
7+
**Is your feature request related to a problem? Please describe.**
8+
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
9+
10+
**Describe the solution you'd like**
11+
A clear and concise description of what you want to happen.
12+
13+
**Describe alternatives you've considered**
14+
A clear and concise description of any alternative solutions or features you've considered.
15+
16+
**Additional context**
17+
Add any other context or screenshots about the feature request here.

0 commit comments

Comments
 (0)