Repository navigation
fix workflows #15
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: Deploy to nuget | |
| on: | |
| push: | |
| branches: | |
| - "main" | |
| env: | |
| PROJECT_LIB_PATH: 'src/PupaLib.FileIO/PupaLib.FileIO.csproj' | |
| PROJECT_TESTS_PATH: 'src/PupaLib.FileIO.Tests/PupaLib.FileIO.Tests.csproj' | |
| jobs: | |
| test: | |
| name: "Test" | |
| runs-on: "ubuntu-latest" | |
| steps: | |
| - name: 'Checkout' | |
| uses: actions/checkout@v3 | |
| - name: "Setup dotnet" | |
| uses: actions/setup-dotnet@v3 | |
| with: | |
| dotnet-version: '10.0.x' | |
| - name: "Resotore lib project" | |
| run: dotnet restore ${{ env.PROJECT_LIB_PATH }} | |
| - name: "Resotore test project" | |
| run: dotnet restore ${{ env.PROJECT_TESTS_PATH }} | |
| - name: "Build lib project" | |
| run: dotnet build ${{ env.PROJECT_LIB_PATH }} | |
| - name: "Build test project" | |
| run: dotnet build ${{ env.PROJECT_TESTS_PATH }} | |
| - name: "Run test" | |
| run: dotnet test ${{ env.PROJECT_TESTS_PATH }} --no-build --verbosity normal |