Fix CsvFaker to open a stream that is constantly written to #103
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
| # This workflow will build a .NET project | |
| # For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-net | |
| name: .NET | |
| on: | |
| push: | |
| branches: [ "master" ] | |
| pull_request: | |
| branches: [ "master" ] | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Setup .NET | |
| uses: actions/setup-dotnet@v3 | |
| with: | |
| dotnet-version: 8.0.x | |
| - name: Build | |
| run: dotnet build -c Release | |
| working-directory: ./ | |
| - name: Test | |
| run: dotnet test -c Release --no-build | |
| working-directory: ./ | |
| - name: Pack | |
| run: dotnet pack -c Release | |
| working-directory: ./ | |
| # Create Nuget Package and DLL as an artifact | |
| - run: echo "NupkgName=$(ls ./src/Faker.NET/nupkg/ | head -n 1)" >> $GITHUB_ENV | |
| - name: Create Nupkg Artifact | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: ${{ env.NupkgName }} | |
| path: ./src/Faker.NET/nupkg | |
| - name: Create DLL Artifact | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: Faker.NET.dll | |
| path: ./src/Faker.NET/bin/Release/net6.0 |