Repository navigation
Initial commit: Cocoar.FileSystem library with ResilientFileSystemMon… #1
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: Develop - Push | |
| on: | |
| push: | |
| branches: [ develop ] | |
| jobs: | |
| prerelease: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| packages: write | |
| contents: read | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: Setup .NET | |
| uses: actions/setup-dotnet@v4 | |
| with: | |
| dotnet-version: 8.0.x | |
| - name: Install GitVersion | |
| uses: gittools/actions/gitversion/setup@v3 | |
| with: | |
| versionSpec: '6.x' | |
| - name: Calculate version | |
| id: gv | |
| uses: gittools/actions/gitversion/execute@v3 | |
| - name: Restore dependencies | |
| run: dotnet restore | |
| working-directory: ./src | |
| - name: Build solution | |
| run: dotnet build -c Release --no-restore -p:Version=${{ steps.gv.outputs.SemVer }} -p:AssemblyVersion=${{ steps.gv.outputs.AssemblySemVer }} -p:FileVersion=${{ steps.gv.outputs.AssemblySemFileVer }} | |
| working-directory: ./src | |
| - name: Run tests | |
| run: dotnet test -c Release --no-build --no-restore --verbosity normal | |
| working-directory: ./src | |
| - name: Pack NuGet packages (alpha) | |
| run: dotnet pack -c Release --no-restore -o ../artifacts -p:Version=${{ steps.gv.outputs.SemVer }} | |
| working-directory: ./src | |
| - name: Upload artifacts for testing | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: prerelease-${{ steps.gv.outputs.SemVer }} | |
| path: artifacts | |
| retention-days: 7 | |