Skip to content

Commit

Permalink
Update workflow
Browse files Browse the repository at this point in the history
Signed-off-by: Alireza Poodineh <itsaeliux@gmail.com>
  • Loading branch information
Aeliux committed Oct 9, 2024
1 parent ae29120 commit 5570d38
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 4 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/core.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,17 +51,20 @@ jobs:
8.0.x
- name: Install dependencies
run: |
./build.sh --bootstrap
./build.sh -t restore-all
./build.sh -t restore-tests
- name: Build
run: |
./build.sh -t build-all -c ${{ matrix.configuration }}
./build.sh -t build-all -c ${{ matrix.configuration }} --no-restore true
./build.sh -t build-tests -c ${{ matrix.configuration }} --no-restore true
shell: bash

- name: Test
run: |
./build.sh -t test-all -c ${{ matrix.configuration }}
./build.sh -t test-all -c ${{ matrix.configuration }} --no-build true
shell: bash

- name: Publish Test Results
uses: EnricoMi/publish-unit-test-result-action@v2
if: matrix.os == 'ubuntu' && matrix.configuration == 'Nuget'
Expand All @@ -78,7 +81,7 @@ jobs:
- name: Create NuGet package
if: github.event_name != 'pull_request'
run: |
./build.sh -t pack-all -c ${{ matrix.configuration }}
./build.sh -t pack-all -c ${{ matrix.configuration }} --no-build true
shell: bash

- name: Deploy to Github packages
Expand Down
8 changes: 8 additions & 0 deletions build.cake
Original file line number Diff line number Diff line change
Expand Up @@ -262,12 +262,20 @@ Task("Restore-All")
.IsDependentOn("Restore-Client")
.IsDependentOn("Restore-Cli");

Task("Restore-Tests")
.Description("Restore all test projects")
.IsDependentOn("Restore-Engine.Test");

Task("Build-All")
.Description("Build all projects")
.IsDependentOn("Build-Engine")
.IsDependentOn("Build-Client")
.IsDependentOn("Build-Cli");

Task("Build-Tests")
.Description("Build all test projects")
.IsDependentOn("Build-Engine.Test");

Task("Pack-All")
.Description("Create NuGet package for all projects")
.IsDependentOn("Pack-Engine")
Expand Down

0 comments on commit 5570d38

Please sign in to comment.