diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index f1f792c6..2a922f91 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -34,13 +34,21 @@ jobs: cmd: test/WorkflowCore.Tests.Elasticsearch steps: - uses: actions/checkout@v3 + - name: Setup .NET uses: actions/setup-dotnet@v3 with: dotnet-version: 6.0.x + + - name: Prepare to install packages + run: | + dotnet nuget add source --username USERNAME --password ${{ secrets.GITHUB_TOKEN }} --store-password-in-clear-text --name github "${{ secrets.NUGET_SOURCE }}" + - name: Restore dependencies run: dotnet restore + - name: Build run: dotnet build --no-restore + - name: ${{ matrix.category }} Tests run: dotnet test ${{ matrix.cmd }} --no-build --verbosity normal -p:ParallelizeTestCollections=false \ No newline at end of file diff --git a/.github/workflows/nuget_dsl.yml b/.github/workflows/nuget_dsl.yml index c0478665..2ce610d5 100644 --- a/.github/workflows/nuget_dsl.yml +++ b/.github/workflows/nuget_dsl.yml @@ -27,6 +27,10 @@ jobs: with: dotnet-version: ${{ env.DOTNET_VERSION }} + - name: Prepare to install packages + run: | + dotnet nuget add source --username USERNAME --password ${{ secrets.GITHUB_TOKEN }} --store-password-in-clear-text --name github "${{ secrets.NUGET_SOURCE }}" + - name: Extract version from tag id: extract_version run: echo "VERSION=${GITHUB_REF/refs\/tags\/ReleaseWorkflowCoreDsl\//}" >> $GITHUB_OUTPUT diff --git a/.github/workflows/nuget_persistence_mongodb.yml b/.github/workflows/nuget_persistence_mongodb.yml index 9f270b23..a99abd17 100644 --- a/.github/workflows/nuget_persistence_mongodb.yml +++ b/.github/workflows/nuget_persistence_mongodb.yml @@ -27,6 +27,10 @@ jobs: with: dotnet-version: ${{ env.DOTNET_VERSION }} + - name: Prepare to install packages + run: | + dotnet nuget add source --username USERNAME --password ${{ secrets.GITHUB_TOKEN }} --store-password-in-clear-text --name github "${{ secrets.NUGET_SOURCE }}" + - name: Extract version from tag id: extract_version run: echo "VERSION=${GITHUB_REF/refs\/tags\/ReleaseWorkflowCorePersistenceMongoDB\//}" >> $GITHUB_OUTPUT diff --git a/.github/workflows/nuget_workflowcore.yml b/.github/workflows/nuget_workflowcore.yml index b14a43fd..faf016de 100644 --- a/.github/workflows/nuget_workflowcore.yml +++ b/.github/workflows/nuget_workflowcore.yml @@ -27,6 +27,10 @@ jobs: with: dotnet-version: ${{ env.DOTNET_VERSION }} + - name: Prepare to install packages + run: | + dotnet nuget add source --username USERNAME --password ${{ secrets.GITHUB_TOKEN }} --store-password-in-clear-text --name github "${{ secrets.NUGET_SOURCE }}" + - name: Extract version from tag id: extract_version run: echo "VERSION=${GITHUB_REF/refs\/tags\/ReleaseWorkflowCore\//}" >> $GITHUB_OUTPUT