Skip to content

Merge pull request #444 from ThisFunctionalTom/use-vite #131

Merge pull request #444 from ThisFunctionalTom/use-vite

Merge pull request #444 from ThisFunctionalTom/use-vite #131

Workflow file for this run

name: master
on:
push:
branches: [ master ]
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- name: Ensure no Windows line endings
run: ./validate.sh
- name: Setup .NET Core
uses: actions/setup-dotnet@v3
- name: Install dependencies
run: dotnet restore
- name: Build
run: dotnet build --no-restore --configuration Release
- name: Test (Hedgehog.Tests)
run: dotnet test --no-build --configuration Release --verbosity normal tests/Hedgehog.Tests/Hedgehog.Tests.fsproj
- name: Test (Hedgehog.Linq.Tests)
run: dotnet test --no-build --configuration Release --verbosity normal tests/Hedgehog.Linq.Tests/Hedgehog.Linq.Tests.csproj
- name: Publish NuGet
uses: alirezanet/publish-nuget@v3.0.4
with:
PROJECT_FILE_PATH: "src/Hedgehog/Hedgehog.fsproj"
PACKAGE_NAME: "Hedgehog"
NUGET_KEY: ${{secrets.NUGET_API_KEY}}
fable-tests:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- name: Setup NodeJs
uses: actions/setup-node@v3
with:
node-version-file: ".nvmrc"
- name: Install npm packages
run: npm install
working-directory: ./tests/Hedgehog.Tests
- name: Fable Tests (Hedgehog.Tests)
run: |
dotnet tool restore
npm test
working-directory: ./tests/Hedgehog.Tests