Skip to content

Commit ab1b3ae

Browse files
Merge pull request #4439 from Ginger-Automation/Upgrade_GitHub_Actions
Upgrade Version of Workflow actions And Fix codeql-config.yml file place/path
2 parents e9d7304 + 343d439 commit ab1b3ae

6 files changed

Lines changed: 30 additions & 29 deletions

File tree

.github/workflows/Build.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ jobs:
5555
# ------------------------------------------------------------------------------------------------------
5656
# Copy Ginger repo
5757
# ------------------------------------------------------------------------------------------------------
58-
- uses: actions/checkout@v3
58+
- uses: actions/checkout@v6
5959

6060
# ------------------------------------------------------------------------------------------------------
6161
# Update Ginger Version
@@ -94,7 +94,7 @@ jobs:
9494
# Install .Net core SDK 8.0.100
9595
# ------------------------------------------------------------------------------------------------------
9696
- name: 'Install .NET 10'
97-
uses: actions/setup-dotnet@v3
97+
uses: actions/setup-dotnet@v5
9898
with:
9999
dotnet-version: 10.0.103
100100
# ------------------------------------------------------------------------------------------------------
@@ -114,7 +114,7 @@ jobs:
114114
# Install Nuget tool v1.0.5
115115
# ------------------------------------------------------------------------------------------------------
116116
- name: 'Setup Nuget'
117-
uses: Nuget/setup-nuget@v1.0.5
117+
uses: Nuget/setup-nuget@v2.0.1
118118

119119
# ------------------------------------------------------------------------------------------------------
120120
# Restore Ginger solution NuGet packages
@@ -127,7 +127,7 @@ jobs:
127127
# ------------------------------------------------------------------------------------------------------
128128
- name: 'Add msbuild to PATH'
129129
if: runner.os == 'Windows'
130-
uses: microsoft/setup-msbuild@v1.0.2
130+
uses: microsoft/setup-msbuild@v2
131131

132132
- name: 'Build Ginger Windows Solution'
133133
if: runner.os == 'Windows'
@@ -146,7 +146,7 @@ jobs:
146146
- name: Cache static site content - Windows
147147
id: cache_windows
148148
if: runner.os == 'Windows'
149-
uses: actions/cache@v4
149+
uses: actions/cache@v5
150150
with:
151151
path:
152152
./**
@@ -158,7 +158,7 @@ jobs:
158158
- name: Cache static site content - Linux
159159
id: cache_linux
160160
if: runner.os == 'Linux'
161-
uses: actions/cache@v4
161+
uses: actions/cache@v5
162162
with:
163163
path:
164164
./**
@@ -171,7 +171,7 @@ jobs:
171171
- name: Cache static site content - macOS
172172
id: cache_macos
173173
if: runner.os == 'macOS'
174-
uses: actions/cache@v4
174+
uses: actions/cache@v5
175175
with:
176176
path:
177177
./**
File renamed without changes.

.github/workflows/Deploy.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,21 +37,21 @@ jobs:
3737
# ------------------------------------------------------------------------------------------------------
3838
# Copy Ginger repo
3939
# ------------------------------------------------------------------------------------------------------
40-
- uses: actions/checkout@v4
40+
- uses: actions/checkout@v5
4141

4242
# ------------------------------------------------------------------------------------------------------
4343
# Download Windows Installer Artifact
4444
# ------------------------------------------------------------------------------------------------------
4545
- name: Download Windows Installer Artifact
46-
uses: actions/download-artifact@v4
46+
uses: actions/download-artifact@v7
4747
with:
4848
name: WindowsInstaller
4949

5050
# ------------------------------------------------------------------------------------------------------
5151
# Download GingerRuntime_Linux Artifact
5252
# ------------------------------------------------------------------------------------------------------
5353
- name: Restore GingerRuntime_Linux
54-
uses: actions/cache@v4
54+
uses: actions/cache@v5
5555
with:
5656
path: ./GingerRuntime_Linux-root.tar.gz
5757
key: cache-GingerRuntime_Linux-${{ github.run_number }}
@@ -62,7 +62,7 @@ jobs:
6262
# Download GingerRuntime_MacOS Artifact
6363
# ------------------------------------------------------------------------------------------------------
6464
- name: Restore GingerRuntime_MacOS
65-
uses: actions/cache@v4
65+
uses: actions/cache@v5
6666
with:
6767
path: ./GingerRuntime_MacOS-root.tar.gz
6868
key: cache-GingerRuntime_MacOS-${{ github.run_number }}

.github/workflows/Release.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
runs-on: macOS-latest
1212
steps:
1313
- name: Restore static site content
14-
uses: actions/cache@v4
14+
uses: actions/cache@v5
1515
with:
1616
path: ./**
1717
key: cache-site-macos-${{ github.run_number }}
@@ -26,14 +26,14 @@ jobs:
2626
run: |
2727
find ./Ginger/GingerRuntime/bin/Release/net10.0/osx-x64/selenium-manager -type f -print0 | xargs -0 chmod +x
2828
29-
- uses: sibiraj-s/action-archiver@v1
29+
- uses: sibiraj-s/action-archiver@v1.2.0
3030
with:
3131
path: './Ginger/GingerRuntime/bin/Release/net10.0/osx-x64'
3232
format: tar
3333
gzip: true
3434
output: ./Runtime/GingerRuntime_MacOS.tar.gz
3535

36-
- uses: sibiraj-s/action-archiver@v1
36+
- uses: sibiraj-s/action-archiver@v1.2.0
3737
with:
3838
path: './Runtime'
3939
format: tar
@@ -42,7 +42,7 @@ jobs:
4242

4343
- name: Cache GingerRuntime_MacOS
4444
id: cache
45-
uses: actions/cache@v4
45+
uses: actions/cache@v5
4646
with:
4747
path:
4848
./GingerRuntime_MacOS-root.tar.gz
@@ -58,7 +58,7 @@ jobs:
5858
runs-on: ubuntu-latest
5959
steps:
6060
- name: Restore static site content
61-
uses: actions/cache@v4
61+
uses: actions/cache@v5
6262
with:
6363
path: ./**
6464
key: cache-site-linux-${{ github.run_number }}
@@ -74,7 +74,7 @@ jobs:
7474
ls -altr
7575
find ./Ginger/GingerRuntime/bin/Release/net10.0/linux-x64/selenium-manager -type f -print0 | xargs -0 chmod +x
7676
77-
- uses: sibiraj-s/action-archiver@v1
77+
- uses: sibiraj-s/action-archiver@v1.2.0
7878
with:
7979
path: './Ginger/GingerRuntime/bin/Release/net10.0/linux-x64'
8080
format: tar
@@ -91,7 +91,7 @@ jobs:
9191
dos2unix -b ./Runtime/gingerInstall.sh
9292
9393
94-
- uses: sibiraj-s/action-archiver@v1
94+
- uses: sibiraj-s/action-archiver@v1.2.0
9595
with:
9696
path: './Runtime'
9797
format: tar
@@ -100,7 +100,7 @@ jobs:
100100

101101
- name: Cache GingerRuntime_Linux
102102
id: cache
103-
uses: actions/cache@v4
103+
uses: actions/cache@v5
104104
with:
105105
path:
106106
./GingerRuntime_Linux-root.tar.gz
@@ -116,7 +116,7 @@ jobs:
116116
runs-on: windows-latest
117117
steps:
118118
- name: Restore static site content
119-
uses: actions/cache@v4
119+
uses: actions/cache@v5
120120
with:
121121
path: ./**
122122
key: cache-site-windows-${{ github.run_number }}
@@ -315,7 +315,7 @@ jobs:
315315
#cert-password: ${{ secrets.PEM_PASS }}
316316

317317
- name: Upload Windows Installer
318-
uses: actions/upload-artifact@v4
318+
uses: actions/upload-artifact@v6
319319
with:
320320
name: WindowsInstaller
321321
path: D:/a/Installers

.github/workflows/Test.yml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
# ------------------------------------------------------------------------------------------------------
2727
- name: Restore static site content -Windows
2828
if: runner.os == 'Windows'
29-
uses: actions/cache@v4
29+
uses: actions/cache@v5
3030
with:
3131
path: ./**
3232
key: cache-site-windows-${{ github.run_number }}
@@ -35,7 +35,7 @@ jobs:
3535

3636
- name: Restore static site content - Linux
3737
if: runner.os == 'Linux'
38-
uses: actions/cache@v4
38+
uses: actions/cache@v5
3939
with:
4040
path: ./**
4141
key: cache-site-linux-${{ github.run_number }}
@@ -44,7 +44,7 @@ jobs:
4444

4545
- name: Restore static site content - macOS
4646
if: runner.os == 'macOS'
47-
uses: actions/cache@v4
47+
uses: actions/cache@v5
4848
with:
4949
path: ./**
5050
key: cache-site-macos-${{ github.run_number }}
@@ -56,7 +56,7 @@ jobs:
5656
# Install .Net core SDK 10.0.103
5757
# ------------------------------------------------------------------------------------------------------
5858
- name: Setup .NET
59-
uses: actions/setup-dotnet@v3
59+
uses: actions/setup-dotnet@v5
6060
with:
6161
dotnet-version: 10.0.103
6262
# ------------------------------------------------------------------------------------------------------
@@ -76,7 +76,7 @@ jobs:
7676
# Install Nuget tool v1.0.5
7777
# ------------------------------------------------------------------------------------------------------
7878
- name: Setup Nuget
79-
uses: Nuget/setup-nuget@v1.0.5
79+
uses: Nuget/setup-nuget@v2.0.1
8080

8181
# ------------------------------------------------------------------------------------------------------
8282
# Restore Ginger solution NuGet packages
@@ -89,7 +89,7 @@ jobs:
8989
# ------------------------------------------------------------------------------------------------------
9090
- name: Add msbuild to PATH
9191
if: ${{github.workflow == 'Ginger Windows Test'}}
92-
uses: microsoft/setup-msbuild@v1.0.2
92+
uses: microsoft/setup-msbuild@v2
9393

9494
- name: Build Ginger Solution
9595
if: ${{github.workflow == 'Ginger Windows Test'}}
@@ -122,6 +122,7 @@ jobs:
122122
if: success() || failure()
123123
run: dotnet test Ginger/GingerAutoPilotTest --configuration ${{ env.BUILD_CONFIGURATION }} --logger trx --results-directory D:\a\TestResults --verbosity=normal
124124

125+
125126
# ------------------------------------------------------------------------------------------------------
126127
# Run .Net Framework tests using powershell and publish the results
127128
# ------------------------------------------------------------------------------------------------------
@@ -170,4 +171,4 @@ jobs:
170171
path: "**/*.trx" # Path to test results
171172
reporter: dotnet-trx # Format of test results
172173

173-
174+

.github/workflows/codeql-analysis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ jobs:
5151
uses: github/codeql-action/init@v3
5252
with:
5353
languages: ${{ matrix.language }}
54-
config-file: ./.github/workflows/codeql-config.yml
54+
config-file: ./.github/workflows/Config/codeql-config.yml
5555

5656
# ------------------------------------------------------------------------------------------------------
5757
# Install .Net core SDK 8.0.100

0 commit comments

Comments
 (0)