Update fake, paket and tests to dotnet8 #163
Workflow file for this run
This file contains hidden or 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: Build and Test | |
| on: | |
| push: | |
| pull_request: | |
| workflow_dispatch: | |
| inputs: | |
| release: | |
| description: 'Release NuGet package' | |
| required: true | |
| default: false | |
| type: boolean | |
| jobs: | |
| build: | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: [ubuntu-latest, windows-latest] | |
| dotnet: [8.0.416] | |
| node: ['14'] | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: setup git config | |
| run: | | |
| git config user.name "GitHub Actions Bot" | |
| git config user.email "<>" | |
| - name: Setup node | |
| uses: actions/setup-node@v6 | |
| with: | |
| node-version: ${{ matrix.node }} | |
| - name: Setup .NET Core | |
| uses: actions/setup-dotnet@v5 | |
| with: | |
| dotnet-version: ${{ matrix.dotnet }} | |
| - name: Install local tools | |
| run: dotnet tool restore | |
| - name: Paket Restore | |
| run: dotnet paket restore | |
| - name: Build and Test | |
| run: dotnet run --project build\build.fsproj | |
| - name: Check secrets presence | |
| id: checksecrets | |
| shell: bash | |
| run: | | |
| echo "secretspresent=YES" >> $GITHUB_OUTPUT | |
| if [ "$GITHUB_TOKEN" == "" ]; then | |
| echo "secretspresent=NO" >> $GITHUB_OUTPUT | |
| fi | |
| if [ "$NUGET_KEY" == "" ]; then | |
| echo "secretspresent=NO" >> $GITHUB_OUTPUT | |
| fi | |
| env: | |
| NUGET_KEY: ${{ secrets.NUGETKEY }} | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Publish prerelease NuGet to GitHub | |
| if: (steps.checksecrets.outputs.secretspresent != 'NO') && matrix.os == 'windows-latest' && github.ref == 'refs/heads/master' && github.event.inputs.release != 'true' | |
| run: dotnet run --project build\build.fsproj -- PublishCINuGet | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Publish NuGet to NuGet.org | |
| if: (steps.checksecrets.outputs.secretspresent != 'NO') && matrix.os == 'windows-latest' && github.ref == 'refs/heads/master' && github.event.inputs.release == 'true' | |
| run: dotnet run --project build/build.fsproj -- Release | |
| env: | |
| NUGET_KEY: ${{ secrets.NUGETKEY }} | |