Skip to content

Commit 8a00d3b

Browse files
committed
Updates for new folder
1 parent ebb81e8 commit 8a00d3b

File tree

2 files changed

+27
-10
lines changed

2 files changed

+27
-10
lines changed

.github/workflows/lint-check-dotnet.yml

Lines changed: 23 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,18 +22,35 @@ jobs:
2222
sparse-checkout: |
2323
.github
2424
dotnetv3
25-
- name: Get changed files
26-
id: changed-files
25+
dotnetv4
26+
- name: Get changed files v3
27+
id: changed-files-v3
2728
uses: tj-actions/changed-files@e9772d140489982e0e3704fea5ee93d536f1e275
2829
with:
2930
files: "dotnetv3/**/*.{cs,sln,csproj,json}"
30-
- name: Build check
31-
if: steps.changed-files.outputs.any_changed == 'true'
31+
- name: Build check v3
32+
if: steps.changed-files-v3.outputs.any_changed == 'true'
3233
run: |
3334
cd dotnetv3
3435
dotnet build -v=q --property WarningLevel=0 /clp:ErrorsOnly
35-
- name: Lint and format check
36-
if: steps.changed-files.outputs.any_changed == 'true' && (success() || failure())
36+
- name: Lint and format check v3
37+
if: steps.changed-files-v3.outputs.any_changed == 'true' && (success() || failure())
3738
run: |
3839
cd dotnetv3
3940
dotnet format --verify-no-changes
41+
- name: Get changed files v4
42+
id: changed-files-v4
43+
uses: tj-actions/changed-files@e9772d140489982e0e3704fea5ee93d536f1e275
44+
with:
45+
files: "dotnetv4/**/*.{cs,sln,csproj,json}"
46+
- name: Build check v4
47+
if: steps.changed-files-v4.outputs.any_changed == 'true'
48+
run: |
49+
cd dotnetv4
50+
dotnet build -v=q --property WarningLevel=0 /clp:ErrorsOnly
51+
- name: Lint and format check v4
52+
if: steps.changed-files-v4.outputs.any_changed == 'true' && (success() || failure())
53+
run: |
54+
cd dotnetv4
55+
dotnet format --verify-no-changes
56+

dotnetv4/Dockerfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@ FROM mcr.microsoft.com/dotnet/sdk:6.0
55
COPY --from=mcr.microsoft.com/dotnet/sdk:8.0 /usr/share/dotnet/sdk /usr/share/dotnet/sdk
66
COPY --from=mcr.microsoft.com/dotnet/sdk:8.0 /usr/share/dotnet/shared /usr/share/dotnet/shared
77

8-
# Copy the dotnetv3 folder and run unit tests from the top level solution.
8+
# Copy the dotnetv4 folder and run unit tests from the top level solution.
99
# Or navigate to a service folder or a scenario folder,
10-
# such as dotnetv3/CloudWatch/Scenarios to build and run an interactive scenario with `dotnet run`
11-
COPY . /dotnetv3
10+
# such as dotnetv4/Aurora/Scenarios to build and run an interactive scenario with `dotnet run`
11+
COPY . /dotnetv4
1212

13-
RUN cd /dotnetv3 && dotnet build -v=q --property WarningLevel=0 /clp:ErrorsOnly --nologo
13+
RUN cd /dotnetv4 && dotnet build -v=q --property WarningLevel=0 /clp:ErrorsOnly --nologo
1414

1515
CMD ["dotnet", "test", "dotnetv3", "--filter", "Category=Unit|Category=Weathertop", "--verbosity=quiet", "/clp:ErrorsOnly", "--nologo"]

0 commit comments

Comments
 (0)