-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create initial project for Fabulous.XF.Maps
- Loading branch information
0 parents
commit 11f76a2
Showing
44 changed files
with
42,611 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"version": 1, | ||
"isRoot": true, | ||
"tools": { | ||
"fantomas": { | ||
"version": "5.0.6", | ||
"commands": [ | ||
"fantomas" | ||
] | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
name: Build | ||
on: | ||
push: | ||
branches: [ 'main' ] | ||
paths-ignore: [ 'docs/**' ] | ||
|
||
permissions: write-all | ||
|
||
jobs: | ||
build: | ||
runs-on: macos-latest | ||
env: | ||
SLN_FILE: NoSamples.sln | ||
VERSION: 2.0.0 | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Setup .NET | ||
uses: actions/setup-dotnet@v1 | ||
with: | ||
dotnet-version: 6.0.401 | ||
- name: Restore | ||
run: dotnet restore ${SLN_FILE} | ||
- name: Build | ||
run: dotnet build -p:Version=${VERSION}-nightly-${GITHUB_RUN_ID} --no-restore --configuration Release ${SLN_FILE} | ||
- name: Test | ||
run: dotnet test -p:Version=${VERSION}-nightly-${GITHUB_RUN_ID} --no-build --configuration Release ${SLN_FILE} | ||
- name: Pack | ||
run: | | ||
dotnet pack -p:Version=${VERSION}-nightly-${GITHUB_RUN_ID} --configuration Release --output nupkgs ${SLN_FILE} | ||
- name: Push | ||
run: | | ||
dotnet nuget push "nupkgs/*.nupkg" -s https://nuget.pkg.github.com/fsprojects/index.json -k ${{ secrets.GITHUB_TOKEN }} --skip-duplicate |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
name: Pull Request | ||
on: pull_request | ||
|
||
jobs: | ||
build: | ||
runs-on: macos-latest | ||
env: | ||
SLN_FILE: NoSamples.sln | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Setup .NET | ||
uses: actions/setup-dotnet@v1 | ||
with: | ||
dotnet-version: 6.0.401 | ||
- name: Check code formatting | ||
run: | | ||
dotnet tool restore | ||
dotnet fantomas --check -r src samples | ||
- name: Restore | ||
run: dotnet restore ${SLN_FILE} | ||
- name: Build | ||
run: dotnet build --no-restore --configuration Release ${SLN_FILE} | ||
- name: Test | ||
run: dotnet test --no-build --configuration Release ${SLN_FILE} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
name: Release | ||
on: | ||
push: | ||
tags: ['[0-9]+.[0-9]+.[0-9]+'] | ||
paths-ignore: [ 'docs/**' ] | ||
|
||
permissions: write-all | ||
|
||
jobs: | ||
build: | ||
runs-on: macos-latest | ||
environment: nuget | ||
env: | ||
SLN_FILE: NoSamples.sln | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Extract version from tag | ||
uses: damienaicheh/[email protected] | ||
- name: Setup .NET | ||
uses: actions/setup-dotnet@v1 | ||
with: | ||
dotnet-version: 6.0.401 | ||
- name: Restore | ||
run: dotnet restore ${SLN_FILE} | ||
- name: Build | ||
run: dotnet build -p:Version="${MAJOR}.${MINOR}.${PATCH}" --no-restore --configuration Release ${SLN_FILE} | ||
- name: Test | ||
run: dotnet test -p:Version="${MAJOR}.${MINOR}.${PATCH}" --no-build --configuration Release ${SLN_FILE} | ||
- name: Pack | ||
run: | | ||
dotnet pack -p:Version="${MAJOR}.${MINOR}.${PATCH}" --configuration Release --output nupkgs ${SLN_FILE} | ||
- name: Push | ||
run: | | ||
dotnet nuget push "nupkgs/*.nupkg" -s https://api.nuget.org/v3/index.json -k ${{ secrets.NUGET_TOKEN }} --skip-duplicate |
Oops, something went wrong.