Skip to content

Commit fba3454

Browse files
author
Sophia Tevosyan
committed
trying to exclude the sample projects from the yml
1 parent 834fb65 commit fba3454

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

.github/workflows/validate-build.yml

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,16 +35,20 @@ jobs:
3535
global-json-file: global.json
3636

3737
- name: Restore dependencies
38-
run: dotnet restore $env:solution
38+
run: |
39+
Get-ChildItem -Path src, test -Recurse -Filter *.csproj | ForEach-Object { dotnet restore $_.FullName }
3940
4041
- name: Build
41-
run: dotnet build $env:solution --configuration $env:config --no-restore -p:FileVersionRevision=$env:GITHUB_RUN_NUMBER
42+
run: |
43+
Get-ChildItem -Path src, test -Recurse -Filter *.csproj | ForEach-Object { dotnet build --configuration $env:config --no-restore -p:FileVersionRevision=$env:GITHUB_RUN_NUMBER $_.FullName }
4244
4345
- name: Test
44-
run: dotnet test $env:solution --configuration $env:config --no-build --verbosity normal
45-
46+
run: |
47+
Get-ChildItem -Path src, test -Recurse -Filter *.csproj | ForEach-Object { dotnet test --configuration $env:config --no-build --verbosity normal $_.FullName }
48+
4649
- name: Pack
47-
run: dotnet pack $env:solution --configuration $env:config --no-build
50+
run: |
51+
Get-ChildItem -Path src, test -Recurse -Filter *.csproj | ForEach-Object { dotnet pack --configuration $env:config --no-build $_.FullName }
4852
4953
- name: Upload
5054
uses: actions/upload-artifact@v4

0 commit comments

Comments
 (0)