|
1 |
| -name: .NET Core Desktop |
| 1 | +name: .NET |
2 | 2 |
|
3 | 3 | on:
|
4 | 4 | push:
|
|
7 | 7 | branches: [ "master" ]
|
8 | 8 |
|
9 | 9 | jobs:
|
10 |
| - |
11 | 10 | build:
|
12 | 11 |
|
13 |
| - runs-on: windows-latest # For a list of available runner types, refer to |
14 |
| - # https://help.github.com/en/actions/reference/workflow-syntax-for-github-actions #jobsjob_idruns-on |
15 |
| - |
16 |
| - env: |
17 |
| - Solution_Name: Invo2_patcher.sln # Replace with your solution name. |
18 |
| - Configuration: Release |
19 |
| - Platform: Any CPU |
| 12 | + runs-on: windows-latest |
20 | 13 |
|
21 | 14 | steps:
|
22 |
| - - name: Checkout |
23 |
| - uses: actions/checkout@v4 |
24 |
| - with: |
25 |
| - fetch-depth: 0 |
26 |
| - |
27 |
| - # Install the .NET Core workload |
28 |
| - - name: Install .NET Core |
| 15 | + - uses: actions/checkout@v4 |
| 16 | + - name: Setup .NET |
29 | 17 | uses: actions/setup-dotnet@v4
|
30 | 18 | with:
|
31 | 19 | dotnet-version: 8.0.x
|
32 |
| - |
33 |
| - # Add MSBuild to the PATH: https://github.com/microsoft/setup-msbuild |
34 |
| - - name: Setup MSBuild.exe |
35 |
| - uses: microsoft/setup-msbuild@v2 |
36 |
| - |
37 |
| - # Restore the application to populate the obj folder with RuntimeIdentifiers |
38 |
| - - name: Restore the application |
39 |
| - run: dotnet restore $env:Solution_Name |
40 |
| - |
41 |
| - # Build the application |
42 |
| - - name: Build the application |
43 |
| - run: dotnet build $env:Solution_Name --configuration $env:Configuration --no-restore |
44 |
| - env: |
45 |
| - Configuration: ${{ matrix.configuration }} |
46 |
| - |
47 |
| - # Publish the application |
48 |
| - - name: Publish the application |
49 |
| - run: dotnet publish $env:Solution_Name --configuration $env:Configuration --no-build --output ./publish |
50 |
| - env: |
51 |
| - Configuration: ${{ matrix.configuration }} |
52 |
| - |
53 |
| - # Upload the build artifacts |
54 |
| - - name: Upload build artifacts |
55 |
| - uses: actions/upload-artifact@v4 |
56 |
| - with: |
57 |
| - name: Build Artifacts |
58 |
| - path: ./publish |
| 20 | + - name: Restore dependencies |
| 21 | + run: dotnet restore |
| 22 | + - name: Build |
| 23 | + run: dotnet build -c Release --no-restore |
| 24 | + - name: Test |
| 25 | + run: dotnet test --no-build --verbosity normal |
0 commit comments