16
16
env :
17
17
DOTNET_NOLOGO : true
18
18
DOTNET_CLI_TELEMETRY_OPTOUT : true
19
+ DOTNET_VERSION : 7.x
19
20
20
21
jobs :
21
22
build :
32
33
- name : Setup .NET
33
34
uses : actions/setup-dotnet@v4
34
35
with :
35
- dotnet-version : 7.x
36
+ dotnet-version : ${{ env.DOTNET_VERSION }}
36
37
37
38
- name : Install dependencies
38
39
shell : pwsh
@@ -45,15 +46,15 @@ jobs:
45
46
run : Invoke-Build -Configuration Release -AssertStyle GitHubActions
46
47
47
48
- name : Upload module
48
- uses : actions/upload-artifact@v3
49
+ uses : actions/upload-artifact@v4
49
50
with :
50
51
name : Module
51
52
path : ./out/modules/PSRule.Rules.Azure/*
52
53
retention-days : 3
53
54
if-no-files-found : error
54
55
55
56
# - name: Upload Test Results
56
- # uses: actions/upload-artifact@v3
57
+ # uses: actions/upload-artifact@v4
57
58
# if: always()
58
59
# with:
59
60
# name: Module.DotNet.TestResults
@@ -62,10 +63,10 @@ jobs:
62
63
# if-no-files-found: error
63
64
64
65
- name : Upload PSRule Results
65
- uses : actions/upload-artifact@v3
66
+ uses : actions/upload-artifact@v4
66
67
if : always()
67
68
with :
68
- name : Module. PSRule.TestResults
69
+ name : Results- PSRule
69
70
path : ./reports/ps-rule*.xml
70
71
retention-days : 3
71
72
if-no-files-found : error
@@ -110,7 +111,7 @@ jobs:
110
111
- name : Setup .NET
111
112
uses : actions/setup-dotnet@v4
112
113
with :
113
- dotnet-version : 6.x
114
+ dotnet-version : ${{ env.DOTNET_VERSION }}
114
115
115
116
- if : ${{ matrix.shell == 'pwsh' }}
116
117
name : Install dependencies (PowerShell)
@@ -125,7 +126,7 @@ jobs:
125
126
run : ./scripts/pipeline-deps.ps1
126
127
127
128
- name : Download module
128
- uses : actions/download-artifact@v3
129
+ uses : actions/download-artifact@v4
129
130
with :
130
131
name : Module
131
132
path : ./out/modules/PSRule.Rules.Azure
0 commit comments