Bump version #221
Workflow file for this run
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
name: CI | |
on: [ push, pull_request ] | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Restore tools | |
run: dotnet tool restore | |
- name: Check code format | |
run: dotnet fantomas --check . | |
test-local-sources-linux: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Test | |
run: dotnet test -c Release -p:DeterministicSourcePaths=false -p:EmbedAllSources=false | |
test-embedded-sources-linux: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Test | |
run: dotnet test -c Release -p:DeterministicSourcePaths=true -p:EmbedAllSources=true | |
test-local-sources-windows: | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Test | |
run: dotnet test -c Release -p:DeterministicSourcePaths=false -p:EmbedAllSources=false | |
test-embedded-sources-windows: | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Test | |
run: dotnet test -c Release -p:DeterministicSourcePaths=true -p:EmbedAllSources=true | |
test-local-sources-macos: | |
runs-on: macos-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Test | |
run: dotnet test -c Release -p:DeterministicSourcePaths=false -p:EmbedAllSources=false | |
test-embedded-sources-macos: | |
runs-on: macos-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Test | |
run: dotnet test -c Release -p:DeterministicSourcePaths=true -p:EmbedAllSources=true | |
publish: | |
runs-on: ubuntu-latest | |
needs: | |
- lint | |
- test-local-sources-linux | |
- test-local-sources-windows | |
- test-local-sources-macos | |
- test-embedded-sources-linux | |
- test-embedded-sources-windows | |
- test-embedded-sources-macos | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Pack | |
run: dotnet pack -c Release src/Faqt/Faqt.fsproj | |
- name: Push | |
if: startsWith(github.ref, 'refs/tags/v/') | |
env: | |
NUGET_API_KEY: ${{ secrets.NUGET_API_KEY }} | |
run: dotnet nuget push "**/*.nupkg" -s "https://api.nuget.org/v3/index.json" -k "$NUGET_API_KEY" --skip-duplicate |