Skip to content

Fix tests failing in vitest node #1707

Fix tests failing in vitest node

Fix tests failing in vitest node #1707

Workflow file for this run

# Builds and test
name: build
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
workflow_dispatch:
jobs:
tests:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
submodules: true
- name: setup .net
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x
- name: Nuget package cache
uses: actions/cache@v4
id: nuget-package-cache
env:
cache-name: nuget-package-cache
with:
path: ~/.nuget/packages
key: ${{ runner.os }}-nuget-${{ hashFiles('**/*.csproj') }}
restore-keys: |
${{ runner.os }}-nuget-
- name: setup node
uses: actions/setup-node@v4
with:
node-version: '20'
- name: install node modules
uses: ./.github/actions/pnpm-install
- name: script build
run: pnpm -r build
- name: script tests
run: pnpm -r test -- --coverage
- name: dotnet pack Serenity.Net.CodeGenerator
run: dotnet pack
working-directory: "./src/Serenity.Net.CodeGenerator"
- name: dotnet build Serenity.sln
run: dotnet build /p:SkipNodeScripts=true
- name: dotnet test
run: dotnet test --no-build --verbosity normal