Skip to content

Commit

Permalink
Merge branch 'master' into chmeeren-patch-1
Browse files Browse the repository at this point in the history
  • Loading branch information
wallymathieu committed Jun 22, 2024
2 parents 7a68edc + 50207cf commit 1731907
Show file tree
Hide file tree
Showing 265 changed files with 22,161 additions and 6,654 deletions.
18 changes: 6 additions & 12 deletions .config/dotnet-tools.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,16 @@
"version": 1,
"isRoot": true,
"tools": {
"fake-cli": {
"version": "5.19",
"fable": {
"version": "4.5.0",
"commands": [
"fake"
"fable"
]
},
"paket": {
"version": "6.0.0-alpha014",
"fsdocs-tool": {
"version": "19.1.1",
"commands": [
"paket"
]
},
"FSharp.Formatting.CommandTool":{
"version": "4.0.0-alpha03",
"commands": [
"fsformatting"
"fsdocs"
]
}
}
Expand Down
32 changes: 0 additions & 32 deletions .github/ISSUE_TEMPLATE.md

This file was deleted.

76 changes: 76 additions & 0 deletions .github/ISSUE_TEMPLATE/01_bug_report.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
name: 🐞 Bug Report
description: Create a report to help us improve
labels: ["bug", "triage"]
body:
- type: markdown
attributes:
value: |
Note: the following is not mandatory, just a guideline. Feel free to describe your bug report or suggestion in another way.
- type: textarea
id: background
attributes:
label: Description
description: Please provide a succinct description of your issue.
placeholder: Description
validations:
required: true
- type: textarea
id: known-workarounds
attributes:
label: Known Workarounds
description: Please provide a description of any known workarounds.
placeholder: Known Workarounds
validations:
required: false
- type: textarea
id: expected-behavior
attributes:
label: Expected behavior
description: Provide a description of the expected behavior.
placeholder: Expected behavior
validations:
required: false
- type: textarea
id: actual-behavior
attributes:
label: Actual behavior
description: |
Provide a description of the actual behavior observed. If applicable please include any error messages or exception stack-traces.
placeholder: Actual behavior
validations:
required: false
- type: textarea
id: configuration
attributes:
label: Configuration
description: |
Please provide more information on your .NET configuration:
* Operating system
* Branch/Version
* .NET Runtime, CoreCLR or Mono Version
* Performance information, links to performance testing scripts
placeholder: Configuration
validations:
required: false
- type: textarea
id: repro-steps
attributes:
label: Reproduction Steps
description: |
Please include minimal steps to reproduce the problem if possible. E.g.: the smallest possible code snippet; or a small project, with steps to run it.
Always include text as text rather than screenshots so code can easily be copied and will show up in searches.
Stack Overflow has a great article about [how to create a minimal, reproducible example](https://stackoverflow.com/help/minimal-reproducible-example).
placeholder: Minimal Reproduction
validations:
required: false
- type: dropdown
id: pull-request
attributes:
label: Are you willing to help with a pull-request?
description: |
Make sure you have read the sections about [contributing changes](https://github.com/fsprojects/FSharpPlus/blob/master/DEVELOPER_GUIDE.md) and [design guidelines](https://github.com/fsprojects/FSharpPlus/blob/master/DESIGN_GUIDELINES.md).
options:
- "No"
- "Yes, please assign this issue to me."
validations:
required: true
66 changes: 66 additions & 0 deletions .github/ISSUE_TEMPLATE/02_api_proposal.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
name: 💡 API Suggestion
description: Propose a change to the public API surface
title: "[API Proposal]: "
labels: [api-suggestion]
body:
- type: markdown
attributes:
value: |
We welcome API proposals! We have a process to evaluate the value and shape of new API. This template will help us gather the information we need to start the review process.
- type: textarea
id: background
attributes:
label: Background and motivation
description: Please describe the purpose and value of the new API here.
placeholder: Purpose
validations:
required: true
- type: textarea
id: api-proposal
attributes:
label: API Proposal
description: |
Please provide the specific public API signature diff that you are proposing.
placeholder: API declaration (no function bodies)
validations:
required: true
- type: textarea
id: api-usage
attributes:
label: API Usage
description: |
Please provide code examples that highlight how the proposed API additions are meant to be consumed. This will help suggest whether the API has the right shape to be functional, performant and usable.
placeholder: API usage
validations:
required: true
- type: textarea
id: alternative-designs
attributes:
label: Alternative Designs
description: |
Please provide alternative designs. This might not be APIs; for example instead of providing new APIs an option might be to change the behavior of an existing API.
placeholder: Alternative designs
validations:
required: false
- type: textarea
id: risks
attributes:
label: Risks
description: |
Please mention any risks that to your knowledge the API proposal might entail, such as breaking changes, performance regressions, etc.
placeholder: Risks
validations:
required: false
- type: dropdown
id: pull-request
attributes:
label: Are you willing to help with a proof-of-concept (as PR in that or a separate repo) first and as pull-request later on?
description: |
This is mainly to help demonstrate your suggestion.
Make sure you have read the sections about [contributing changes](https://github.com/fsprojects/FSharpPlus/blob/master/DEVELOPER_GUIDE.md) and [design guidelines](https://github.com/fsprojects/FSharpPlus/blob/master/DESIGN_GUIDELINES.md).
Beware we might not accept the PR as is, but it will help us understand your suggestion better.
options:
- "No"
- "Yes, please assign this issue to me."
validations:
required: true
38 changes: 38 additions & 0 deletions .github/ISSUE_TEMPLATE/03_general_feature.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: 💡 General feature (not including API proposals)
description: Discuss a new feature that does not change the public API surface
title: "[Feature]: "
labels: [feature, triage]
body:
- type: markdown
attributes:
value: |
You have an idea for a new feature? Cool, let's discuss it.
- type: textarea
id: background
attributes:
label: Background and motivation
description: Please describe the purpose of the new feature.
placeholder: Purpose
validations:
required: true
- type: textarea
id: alternative-concerns
attributes:
label: Alternative Concerns
description: |
Please provide alternatives you have thought about.
placeholder: Alternative designs
validations:
required: false
- type: dropdown
id: pull-request
attributes:
label: Are you willing help with a pull-request?
description: |
Make sure you have read the sections about [contributing changes](https://github.com/fsprojects/FSharpPlus/blob/master/DEVELOPER_GUIDE.md) and [design guidelines](https://github.com/fsprojects/FSharpPlus/blob/master/DESIGN_GUIDELINES.md).
Beware we might not accept the PR as is, but it will help us understand your suggestion better.
options:
- "No"
- "Yes, please assign this issue to me."
validations:
required: true
8 changes: 8 additions & 0 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
blank_issues_enabled: true
contact_links:
- name: 📚 Documentation
url: https://fsprojects.github.io/FSharpPlus/
about: Read our documentation.
- name: 💬 Ask on Stack Overflow
url: https://stackoverflow.com/questions/tagged/f%23%2b
about: The best place for asking general purpose questions.
28 changes: 28 additions & 0 deletions .github/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
changelog:
exclude:
labels:
- changelog-ignore
authors: [ ]
categories:
- title: Breaking Changes
labels:
- "breaking change"
- title: New features
labels:
- "feature"
- "add"
- title: Improvements
labels:
- "enhancement"
- "performance"
- title: Fixes
labels:
- "bug"
- "regression"
- "fix"
- title: Documentation
labels:
- "documentation"
- title: Others
labels:
- "*"
88 changes: 79 additions & 9 deletions .github/workflows/dotnetcore.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,16 @@
name: .NET Core

env:
# Stop wasting time caching packages
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true
# Disable sending usage data to Microsoft
DOTNET_CLI_TELEMETRY_OPTOUT: true

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:
build:

Expand All @@ -14,17 +19,82 @@ jobs:
steps:
- uses: actions/checkout@v2
- name: Setup .NET Core
uses: actions/setup-dotnet@v1
uses: actions/setup-dotnet@v3
with:
dotnet-version: 2.2.108
dotnet-version: |
8.0.x
7.0.x
- name: Restore
run: git submodule update --init --recursive
- name: Build with dotnet
run: dotnet build build.proj --configuration Release
- name: Set Timezone
uses: szenius/set-timezone@v1.2
with:
timezoneWindows: "Nepal Standard Time"
- name: Test with dotnet
run: dotnet test build.proj -v n
- name: Use Node.js
uses: actions/setup-node@v1

package:
runs-on: windows-latest
permissions:
packages: write
contents: read
steps:
- uses: actions/checkout@v2
- name: Setup .NET Core
uses: actions/setup-dotnet@v3
with:
dotnet-version: |
8.0.x
7.0.x
6.0.x
- name: Restore
run: git submodule update --init --recursive
- name: Extract branch name
shell: bash
run: echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/})"
id: extract_branch
- name: Setup Version Suffix
shell: pwsh
run: |
$buildId = $env:GITHUB_RUN_NUMBER.PadLeft(5, '0');
$versionSuffixPR = "PR${{ github.event.pull_request.number }}-$buildId";
$branchName = "${{ steps.extract_branch.outputs.branch }}".Replace("_","").Replace("/","-");
$versionSuffixBRANCH = "$($branchName)-CI$($buildId)"
$env:VersionSuffix = if ("${{ github.event.pull_request.number }}") { $versionSuffixPR } else { $versionSuffixBRANCH }
Write-Output "##[set-output name=version_suffix]$($env:VersionSuffix)"
id: version_suffix
- name: Package
run: dotnet pack build.proj --version-suffix ${{ steps.version_suffix.outputs.version_suffix }}
- name: Upload Artifacts
uses: actions/upload-artifact@v2
with:
name: nupkg
path: ./bin/nupkg/*.nupkg
- name: Push to GitHub Feed
continue-on-error: true
shell: bash
run: |
for f in ./bin/nupkg/*.nupkg
do
echo $f
dotnet nuget push $f -k ${{ secrets.GITHUB_TOKEN }} -s https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json
done
docs:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- name: Setup .NET Core
uses: actions/setup-dotnet@v3
with:
node-version: '12.x'
- run: npm install -g fable-splitter fable-compiler
- run: cd src/FSharpPlus; npx fable-splitter --allFiles
- run: cd tests/FSharpPlusFable.Tests; npm install; npm run buildFSharpPlus; npm run test
dotnet-version: |
8.0.x
7.0.x
6.0.x
5.0.x
- name: Restore
run: git submodule update --init --recursive
- name: Build All Docs
run: dotnet msbuild -target:AllDocs build.proj
Loading

0 comments on commit 1731907

Please sign in to comment.