Skip to content

Commit 9fe9f42

Browse files
author
maxence
committed
fix: dornet.yml
1 parent 293403e commit 9fe9f42

1 file changed

Lines changed: 2 additions & 6 deletions

File tree

‎.github/workflows/dotnet.yml‎

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,15 +23,12 @@ jobs:
2323
dotnet-version: ${{ matrix.dotnet-version }}
2424

2525
- name: Restore dependencies
26-
working-directory: ./TableMasterApi
2726
run: dotnet restore
2827

2928
- name: Build
30-
working-directory: ./TableMasterApi
3129
run: dotnet build --no-restore --configuration Release
3230

3331
- name: Run Unit Tests
34-
working-directory: ./TableMasterApi
3532
run: dotnet test TableMasterApi.Tests/TableMasterApi.Tests.csproj --no-build --verbosity normal --logger "trx;LogFileName=test-results.trx"
3633

3734
- name: Upload Test Results
@@ -42,14 +39,13 @@ jobs:
4239
path: '**/test-results.trx'
4340

4441
- name: Publish API
45-
working-directory: ./TableMasterApi/TableMasterApi
46-
run: dotnet publish -c Release -o ./publish
42+
run: dotnet publish TableMasterApi/TableMasterApi.csproj -c Release -o ./publish
4743

4844
- name: Upload Build Artifacts
4945
uses: actions/upload-artifact@v4
5046
with:
5147
name: api-build
52-
path: ./TableMasterApi/TableMasterApi/publish/
48+
path: ./publish/
5349

5450
- name: Test Report
5551
if: always()

0 commit comments

Comments
 (0)