build(deps): bump ws from 7.5.5 to 7.5.10 in /tests/fable #139
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: 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: [6.0.401] | |
node: ['14'] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v2 | |
- name: setup git config | |
run: | | |
git config user.name "GitHub Actions Bot" | |
git config user.email "<>" | |
- name: Setup node | |
uses: actions/setup-node@v2 | |
with: | |
node-version: ${{ matrix.node }} | |
- name: Setup .NET Core | |
uses: actions/setup-dotnet@v1 | |
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 fake run build.fsx | |
- 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 fake run build.fsx -t 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 fake run build.fsx -t Release | |
env: | |
NUGET_KEY: ${{ secrets.NUGETKEY }} | |