diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index af429c6..b176b07 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -21,17 +21,20 @@ jobs: - name: Checkout repository uses: actions/checkout@v4 - - name: Setup dotnet + - name: Setup .NET uses: actions/setup-dotnet@v4 with: dotnet-version: '8.0.x' - - name: Install dependencies - run: dotnet restore --configfile Nuget.config + - name: .NET restore + run: dotnet restore --nologo --configfile Nuget.config - - name: Build + - name: .NET clean + run: dotnet clean --nologo + + - name: .NET build run: dotnet build --nologo --no-restore --configuration Debug - - name: Test + - name: .NET test run: dotnet test --nologo --no-restore --no-build --blame-hang-timeout 1min \ No newline at end of file diff --git a/Fuyu.code-workspace b/Fuyu.code-workspace index 1dce776..8b63fad 100644 --- a/Fuyu.code-workspace +++ b/Fuyu.code-workspace @@ -67,17 +67,17 @@ }, "tasks": [ { - "label": "dotnet: clean", + "label": "dotnet: restore", "type": "shell", - "command": "dotnet clean --nologo", + "command": "dotnet restore --nologo --configfile Nuget.config", "problemMatcher": [] }, { - "label": "dotnet: restore", + "label": "dotnet: clean", "type": "shell", - "command": "dotnet restore --nologo --configfile Nuget.config", + "command": "dotnet clean --nologo", "problemMatcher": [], - "dependsOn": ["dotnet: clean"], + "dependsOn": ["dotnet: restore"], "dependsOrder": "sequence" }, { @@ -85,7 +85,7 @@ "type": "shell", "command": "dotnet build --nologo --no-restore --configuration Debug", "problemMatcher": [], - "dependsOn": ["dotnet: restore"], + "dependsOn": ["dotnet: clean"], "dependsOrder": "sequence", "group": "build" }, @@ -94,7 +94,7 @@ "type": "shell", "command": "dotnet build --nologo --no-restore --configuration Release", "problemMatcher": [], - "dependsOn": ["dotnet: restore"], + "dependsOn": ["dotnet: clean"], "dependsOrder": "sequence", "group": "build" },