Skip to content
This repository has been archived by the owner on Dec 5, 2024. It is now read-only.

Commit

Permalink
Added 'Prepare to install packages' step to build workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
dgusev-dodo committed Feb 22, 2024
1 parent 1a86db3 commit 14a552d
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
4 changes: 4 additions & 0 deletions .github/workflows/nuget_dsl.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/nuget_persistence_mongodb.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/nuget_workflowcore.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 14a552d

Please sign in to comment.