Fix CI (#2) #5
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: CI | |
| on: | |
| push: | |
| pull_request: | |
| workflow_dispatch: | |
| jobs: | |
| build-test-pack: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| - name: Setup .NET | |
| uses: actions/setup-dotnet@v5 | |
| with: | |
| dotnet-version: 10.0.x | |
| - name: Restore | |
| run: dotnet restore OpenPort.Net.sln | |
| - name: Build | |
| run: dotnet build OpenPort.Net.sln --configuration Release --no-restore | |
| - name: Test | |
| run: dotnet test OpenPort.Net.sln --configuration Release --no-build --verbosity normal | |
| - name: Pack | |
| run: dotnet pack OpenPort.Net/OpenPort.Net.csproj --configuration Release --no-build --output artifacts |