Skip to content

Commit

Permalink
Merge pull request #1 from ionide/project-setup
Browse files Browse the repository at this point in the history
Initial project structure
  • Loading branch information
nojaf authored Nov 7, 2023
2 parents 88aa113 + 83ef7aa commit 35ae713
Show file tree
Hide file tree
Showing 27 changed files with 1,226 additions and 1 deletion.
24 changes: 24 additions & 0 deletions .config/dotnet-tools.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"version": 1,
"isRoot": true,
"tools": {
"fsharp-analyzers": {
"version": "0.18.0",
"commands": [
"fsharp-analyzers"
]
},
"fantomas": {
"version": "6.2.3",
"commands": [
"fantomas"
]
},
"fsdocs-tool": {
"version": "20.0.0-alpha-003",
"commands": [
"fsdocs"
]
}
}
}
14 changes: 14 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
root = true

[*.{fs,fsi,fsx}]
end_of_line = lf
fsharp_keep_max_number_of_blank_lines = 1
fsharp_multi_line_lambda_closing_newline = true
fsharp_alternative_long_member_definitions = true
fsharp_align_function_signature_to_indentation = true
fsharp_experimental_keep_indent_in_branch = true
fsharp_bar_before_discriminated_union_declaration = true
fsharp_multiline_bracket_style = aligned

[build.fsx]
fsharp_blank_lines_around_nested_multiline_expressions = false
12 changes: 12 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
version: 2
updates:

- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly"

- package-ecosystem: "nuget"
directory: "/"
schedule:
interval: "daily"
63 changes: 63 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
name: CI

on:
push:
branches:
- main
pull_request:
branches:
- main

env:
DOTNET_NOLOGO: true
DOTNET_CLI_TELEMETRY_OPTOUT: true
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true
DOTNET_ROLL_FORWARD_TO_PRERELEASE: 1
DOTNET_ROLL_FORWARD: LatestMajor

permissions:
contents: read
pages: write
id-token: write

jobs:
ci:
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macOS-latest]
runs-on: ${{ matrix.os }}

steps:
- uses: actions/checkout@v4

- name: Setup .NET
uses: actions/setup-dotnet@v3

- name: Build
run: dotnet fsi build.fsx

- name: Analyzers
continue-on-error: true
run: dotnet fsharp-analyzers --project ./src/Ionide.Analyzers/Ionide.Analyzers.fsproj --project ./tests/Ionide.Analyzers.Tests/Ionide.Analyzers.Tests.fsproj --analyzers-path ./src/Ionide.Analyzers/bin/Release/net6.0 --report ./report.sarif
if: matrix.os == 'ubuntu-latest'

- name: Upload SARIF file
uses: github/codeql-action/upload-sarif@v2
if: matrix.os == 'ubuntu-latest'
with:
sarif_file: ./report.sarif

- name: Upload documentation
if: matrix.os == 'ubuntu-latest' && github.ref == 'refs/heads/main'
uses: actions/upload-pages-artifact@v2
with:
path: ./output

deploy:
runs-on: ubuntu-latest
needs: ci
if: github.ref == 'refs/heads/main'
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2
Loading

0 comments on commit 35ae713

Please sign in to comment.