Skip to content

Commit

Permalink
Create initial project for Fabulous.XF.Maps
Browse files Browse the repository at this point in the history
  • Loading branch information
TimLariviere committed Oct 17, 2022
0 parents commit 11f76a2
Show file tree
Hide file tree
Showing 44 changed files with 42,611 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .config/dotnet-tools.json
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"
]
}
}
}
32 changes: 32 additions & 0 deletions .github/workflows/build.yml
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
24 changes: 24 additions & 0 deletions .github/workflows/pull_request.yml
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}
34 changes: 34 additions & 0 deletions .github/workflows/release.yml
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
Loading

0 comments on commit 11f76a2

Please sign in to comment.