update img link #36
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: Build | |
| on: | |
| pull_request: {} | |
| push: | |
| branches: | |
| - '**' # matches every branch | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: checkout | |
| uses: actions/checkout@v5 | |
| - name: Setup dotnet | |
| uses: actions/setup-dotnet@v5 | |
| with: | |
| dotnet-version: 10.0.x | |
| - name: Restore NuGet packages | |
| run: dotnet restore MyApp.slnx | |
| # If your feed requires authentication, enable and configure the step below. | |
| # This example uses a Personal Access Token stored in secrets.NUGET_API_KEY. | |
| # Alternatively, you can use the NuGet Authenticate action from Azure Pipelines. | |
| # - name: Authenticate private NuGet feed | |
| # env: | |
| # NUGET_API_KEY: ${{ secrets.NUGET_API_KEY }} | |
| # run: | | |
| # dotnet nuget add source "https://YOUR_FEED_URL/index.json" \ | |
| # --name "PrivateFeed" \ | |
| # --username "YOUR_USERNAME" \ | |
| # --password "$NUGET_API_KEY" \ | |
| # --store-password-in-clear-text | |
| - name: build | |
| run: dotnet build --no-restore | |
| working-directory: . | |
| - name: test | |
| run: | | |
| dotnet test | |
| if [ $? -eq 0 ]; then | |
| echo TESTS PASSED | |
| else | |
| echo TESTS FAILED | |
| exit 1 | |
| fi | |
| working-directory: ./MyApp.Tests | |