Skip to content

Commit 5570d38

Browse files
committed
Update workflow
Signed-off-by: Alireza Poodineh <itsaeliux@gmail.com>
1 parent ae29120 commit 5570d38

File tree

2 files changed

+15
-4
lines changed

2 files changed

+15
-4
lines changed

.github/workflows/core.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,17 +51,20 @@ jobs:
5151
8.0.x
5252
- name: Install dependencies
5353
run: |
54-
./build.sh --bootstrap
54+
./build.sh -t restore-all
55+
./build.sh -t restore-tests
5556
5657
- name: Build
5758
run: |
58-
./build.sh -t build-all -c ${{ matrix.configuration }}
59+
./build.sh -t build-all -c ${{ matrix.configuration }} --no-restore true
60+
./build.sh -t build-tests -c ${{ matrix.configuration }} --no-restore true
5961
shell: bash
6062

6163
- name: Test
6264
run: |
63-
./build.sh -t test-all -c ${{ matrix.configuration }}
65+
./build.sh -t test-all -c ${{ matrix.configuration }} --no-build true
6466
shell: bash
67+
6568
- name: Publish Test Results
6669
uses: EnricoMi/publish-unit-test-result-action@v2
6770
if: matrix.os == 'ubuntu' && matrix.configuration == 'Nuget'
@@ -78,7 +81,7 @@ jobs:
7881
- name: Create NuGet package
7982
if: github.event_name != 'pull_request'
8083
run: |
81-
./build.sh -t pack-all -c ${{ matrix.configuration }}
84+
./build.sh -t pack-all -c ${{ matrix.configuration }} --no-build true
8285
shell: bash
8386

8487
- name: Deploy to Github packages

build.cake

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -262,12 +262,20 @@ Task("Restore-All")
262262
.IsDependentOn("Restore-Client")
263263
.IsDependentOn("Restore-Cli");
264264

265+
Task("Restore-Tests")
266+
.Description("Restore all test projects")
267+
.IsDependentOn("Restore-Engine.Test");
268+
265269
Task("Build-All")
266270
.Description("Build all projects")
267271
.IsDependentOn("Build-Engine")
268272
.IsDependentOn("Build-Client")
269273
.IsDependentOn("Build-Cli");
270274

275+
Task("Build-Tests")
276+
.Description("Build all test projects")
277+
.IsDependentOn("Build-Engine.Test");
278+
271279
Task("Pack-All")
272280
.Description("Create NuGet package for all projects")
273281
.IsDependentOn("Pack-Engine")

0 commit comments

Comments
 (0)