Skip to content

Remove async API calls and increment version to 0.4.0 #138

Remove async API calls and increment version to 0.4.0

Remove async API calls and increment version to 0.4.0 #138

Workflow file for this run

# GitHub Actions definition for CI build.
name: CI Build
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
WinBuildTest:
name: Windows build and test
runs-on: windows-2022 # 2019 is not sufficient, Windows 21H1+ is best for ReFS bug fixes
steps:
- uses: actions/checkout@v2
- name: Setup .NET SDK
uses: actions/setup-dotnet@v1
# No "with: dotnet-version" specified -> use global.json
- run: dotnet restore
- run: dotnet build --configuration Release --no-restore
- name: Shrink C drive and create a ReFS E drive, then run tests
run: |
mkdir c:\ReFS
dir c:\
echo SELECT VOLUME C: >DiskPartScript.txt
echo SHRINK DESIRED=10240 >>DiskPartScript.txt
echo CREATE PARTITION PRIMARY >>DiskPartScript.txt
echo LIST PARTITION >>DiskPartScript.txt
echo FORMAT QUICK FS=ReFS LABEL="ReFS Test" >>DiskPartScript.txt
echo ASSIGN LETTER=E >>DiskPartScript.txt
echo LIST VOLUME >>DiskPartScript.txt
echo ASSIGN MOUNT=C:\ReFS >>DiskPartScript.txt
diskpart /s DiskPartScript.txt
if not exist E:\ echo ERROR: diskpart failed && exit /b 1
if not exist C:\ReFS echo ERROR: diskpart failed && exit /b 1
@rem CODESYNC: WindowsReFSDriveSession.cs
set CoW_Test_ReFS_Drive=E:\
dotnet test --no-restore
shell: cmd