Skip to content

[Repo Assist] test: add 48 unit tests for StringExtensions #497

[Repo Assist] test: add 48 unit tests for StringExtensions

[Repo Assist] test: add 48 unit tests for StringExtensions #497

Workflow file for this run

name: Build and Test PR
on:
pull_request:
branches:
- main
jobs:
check-format:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v6
- name: Setup .NET
uses: actions/setup-dotnet@v5
with:
dotnet-version-file: global.json
- name: Cache NuGet packages
uses: actions/cache@v5
with:
path: ~/.nuget/packages
key: ${{ runner.os }}-nuget-${{ hashFiles('**/paket.lock') }}
restore-keys: |
${{ runner.os }}-nuget-
- name: Restore .NET local tools
run: dotnet tool restore
- name: Restore packages
run: dotnet paket restore
- name: Check formatting
run: dotnet run --project build/build.fsproj -- -t CheckFormat
build-windows:
runs-on: windows-latest
timeout-minutes: 40
steps:
- uses: actions/checkout@v6
- name: Setup .NET
uses: actions/setup-dotnet@v5
with:
dotnet-version-file: global.json
- name: Cache NuGet packages
uses: actions/cache@v5
with:
path: ~/.nuget/packages
key: ${{ runner.os }}-nuget-${{ hashFiles('**/paket.lock') }}
restore-keys: |
${{ runner.os }}-nuget-
- name: Restore .NET local tools
run: dotnet tool restore
- name: Restore packages
run: dotnet paket restore
- name: Build and test (Release)
env:
FAKE_DETAILED_ERRORS: true
run: dotnet run --project build/build.fsproj -- -t RunTests
build-ubuntu:
runs-on: ubuntu-latest
timeout-minutes: 40
steps:
- uses: actions/checkout@v6
- name: Setup .NET
uses: actions/setup-dotnet@v5
with:
dotnet-version-file: global.json
- name: Cache NuGet packages
uses: actions/cache@v5
with:
path: ~/.nuget/packages
key: ${{ runner.os }}-nuget-${{ hashFiles('**/paket.lock') }}
restore-keys: |
${{ runner.os }}-nuget-
- name: Restore .NET local tools
run: dotnet tool restore
- name: Restore packages
run: dotnet paket restore
- name: Build and test
run: dotnet run --project build/build.fsproj -- -t RunTests