Skip to content

Commit ceae254

Browse files
committed
Benchmark Testing Larger Runners vs Default Runners - Native
1 parent 111a1d1 commit ceae254

File tree

4 files changed

+119
-91
lines changed

4 files changed

+119
-91
lines changed

.github/workflows/CodeQL_AIO_Larger_Runner_Examples.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88

99
jobs:
1010
Container_Example01_JavaScript:
11-
runs-on: GitHub_Jack_PowerRunner
11+
runs-on: [Larger_Runner_Example]
1212
permissions:
1313
actions: read
1414
contents: read
@@ -68,7 +68,7 @@ jobs:
6868

6969
Container_Example02_Java:
7070
needs: Container_Example01_JavaScript
71-
runs-on: GitHub_Jack_PowerRunner
71+
runs-on: [Larger_Runner_Example]
7272
permissions:
7373
actions: read
7474
contents: read
@@ -113,7 +113,7 @@ jobs:
113113

114114
Container_Example03_Csharp:
115115
needs: [Container_Example01_JavaScript, Container_Example02_Java]
116-
runs-on: GitHub_Jack_PowerRunner
116+
runs-on: [Larger_Runner_Example]
117117
permissions:
118118
actions: read
119119
contents: read
@@ -160,7 +160,7 @@ jobs:
160160

161161
Container_Example04_DockerBuild_and_Scan:
162162
needs: [Container_Example01_JavaScript, Container_Example02_Java, Container_Example03_Csharp]
163-
runs-on: GitHub_Jack_PowerRunner
163+
runs-on: [Larger_Runner_Example]
164164
permissions:
165165
actions: read
166166
contents: read

.github/workflows/CodeQL_AIO_Native_Larger_Runner.yml

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
1-
name: CodeQL_AIO_Native_Larger_Runner_Example.yml
1+
name: CodeQL_AIO_Native_Larger_Runner_Example.yml
22
on:
33
push:
4-
branches: [ main ]
4+
branches: [ main ]
55

66
pull_request:
77
branches: [main]
88

9+
910
jobs:
1011
Example01_JavaScript:
1112
runs-on: GitHub_Jack_PowerRunner
@@ -26,16 +27,14 @@ jobs:
2627
- name: Checkout repository
2728
uses: actions/checkout@v3
2829

29-
# Initializes the CodeQL tools for scanning.
30+
# Initializes the CodeQL tools for scanning.
3031
- name: Initialize CodeQL
3132
uses: github/codeql-action/init@v2
3233
with:
33-
languages:
34-
${{ matrix.language }}
34+
languages: ${{ matrix.language }}
3535

3636
- name: Autobuild
3737
uses: github/codeql-action/autobuild@v2
38-
3938

4039
- name: Perform CodeQL Analysis
4140
uses: github/codeql-action/analyze@v2
@@ -63,7 +62,6 @@ jobs:
6362
sudo apt-get install build-essential maven default-jdk cowsay netcat -y && \
6463
sudo apt-get install -y openjdk-8-jdk && \
6564
sudo update-alternatives --config javac
66-
6765
6866
- name: Initialize CodeQL
6967
uses: github/codeql-action/init@v2
@@ -80,7 +78,7 @@ jobs:
8078

8179
Example03_Csharp:
8280
needs: [Example01_JavaScript, Example02_Java]
83-
runs-on: windows-2022-16core
81+
runs-on: GitHub_Jack_PowerRunner
8482
permissions:
8583
actions: read
8684
contents: read
@@ -91,31 +89,35 @@ jobs:
9189
matrix:
9290
language: [csharp]
9391

94-
9592
steps:
9693
- name: Checkout repository
9794
uses: actions/checkout@v3
9895

99-
- name: Initialize CodeQL
100-
uses: github/codeql-action/init@v2
101-
with:
102-
languages: ${{ matrix.language }}
96+
- name: Install dependencies
97+
run: |
98+
sudo apt-get install -y wget && \
99+
sudo apt-get install -y curl
103100
104101
- name: Setup .NET
105102
uses: actions/setup-dotnet@v3
106103
with:
107104
dotnet-version: 7.0.x
108105

106+
- name: Initialize CodeQL
107+
uses: github/codeql-action/init@v2
108+
with:
109+
languages: ${{ matrix.language }}
110+
109111
- name: Build with dotnet
110-
working-directory: D:\a\CodeQL_containerizedApp\CodeQL_containerizedApp\Example03_Csharp\WebGoatCore\
112+
working-directory: /home/runner/work/CodeQL_containerizedApp/CodeQL_containerizedApp/Example03_Csharp/WebGoatCore/
111113
run: dotnet build WebGoatCore.csproj
112114

113115
# - name: Autobuild
114116
# uses: github/codeql-action/autobuild@v2
115117

116118
- name: Perform CodeQL Analysis
117119
uses: github/codeql-action/analyze@v2
118-
120+
119121
Example04_Python:
120122
needs: [Example01_JavaScript, Example02_Java, Example03_Csharp]
121123
runs-on: GitHub_Jack_PowerRunner
@@ -127,21 +129,19 @@ jobs:
127129
strategy:
128130
fail-fast: false
129131
matrix:
130-
language: [ 'python' ]
131-
132-
steps:
133-
132+
language: ["python"]
133+
134+
steps:
134135
- name: Checkout repository
135-
uses: actions/checkout@v3
136-
136+
uses: actions/checkout@v3
137+
137138
- name: Initialize CodeQL
138139
uses: github/codeql-action/init@v2
139140
with:
140-
languages: ${{ matrix.language }}
141-
141+
languages: ${{ matrix.language }}
142+
142143
- name: Autobuild
143144
uses: github/codeql-action/autobuild@v2
144-
145+
145146
- name: Perform CodeQL Analysis
146147
uses: github/codeql-action/analyze@v2
147-

.github/workflows/CodeQL_AIO_Native_Runner_Example.yml

Lines changed: 15 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
name: CodeQL_AIO_Native_Runner_Example.yml
22
on:
3-
push:
4-
branches: [ main ]
3+
push:
4+
branches: [ main ]
55

6-
pull_request:
6+
pull_request:
77
branches: [main]
88

99
jobs:
@@ -78,7 +78,7 @@ jobs:
7878

7979
Example03_Csharp:
8080
needs: [Example01_JavaScript, Example02_Java]
81-
runs-on: windows-latest
81+
runs-on: ubuntu-latest
8282
permissions:
8383
actions: read
8484
contents: read
@@ -94,22 +94,25 @@ jobs:
9494
- name: Checkout repository
9595
uses: actions/checkout@v3
9696

97-
- name: Initialize CodeQL
98-
uses: github/codeql-action/init@v2
99-
with:
100-
languages: ${{ matrix.language }}
101-
97+
- name: Install dependencies
98+
run: |
99+
sudo apt-get install -y wget && \
100+
sudo apt-get install -y curl
101+
102102
- name: Setup .NET
103103
uses: actions/setup-dotnet@v3
104104
with:
105105
dotnet-version: 7.0.x
106106

107+
- name: Initialize CodeQL
108+
uses: github/codeql-action/init@v2
109+
with:
110+
languages: ${{ matrix.language }}
111+
107112
- name: Build with dotnet
108-
working-directory: D:\a\CodeQL_containerizedApp\CodeQL_containerizedApp\Example03_Csharp\WebGoatCore\
113+
working-directory: /home/runner/work/CodeQL_containerizedApp/CodeQL_containerizedApp/Example03_Csharp/WebGoatCore/
109114
run: dotnet build WebGoatCore.csproj
110115

111-
# - name: Autobuild
112-
# uses: github/codeql-action/autobuild@v2
113116

114117
- name: Perform CodeQL Analysis
115118
uses: github/codeql-action/analyze@v2

0 commit comments

Comments
 (0)