Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
raczeja committed Dec 23, 2021
2 parents 5cc9f3c + 055e091 commit 79bf8e3
Show file tree
Hide file tree
Showing 13 changed files with 86 additions and 16 deletions.
70 changes: 70 additions & 0 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
# For most projects, this workflow file will not need changing; you simply need
# to commit it to your repository.
#
# You may wish to alter this file to override the set of languages analyzed,
# or to provide custom queries or build logic.
#
# ******** NOTE ********
# We have attempted to detect the languages in your repository. Please check
# the `language` matrix defined below to confirm you have the correct set of
# supported CodeQL languages.
#
name: "CodeQL"

on:
push:
branches: [ master ]
pull_request:
# The branches below must be a subset of the branches above
branches: [ master ]
schedule:
- cron: '28 9 * * 0'

jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write

strategy:
fail-fast: false
matrix:
language: [ 'csharp' ]
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ]
# Learn more about CodeQL language support at https://git.io/codeql-language-support

steps:
- name: Checkout repository
uses: actions/checkout@v2

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v1
with:
languages: ${{ matrix.language }}
# If you wish to specify custom queries, you can do so here or in a config file.
# By default, queries listed here will override any specified in a config file.
# Prefix the list here with "+" to use these queries and those in the config file.
# queries: ./path/to/local/query, your-org/your-repo/queries@main

# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
# If this step fails, then you should remove it and run the build manually (see below)
- name: Autobuild
uses: github/codeql-action/autobuild@v1

# ℹ️ Command-line programs to run using the OS shell.
# 📚 https://git.io/JvXDl

# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
# and modify them (or add more) to build your code if your project
# uses a compiled language

#- run: |
# make bootstrap
# make release

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v1
6 changes: 3 additions & 3 deletions ExecutingTestsOnLinux.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,15 @@
#sudo apt-get update
#sudo apt-get install google-chrome-stable
$ChromeDriverVersion=google-chrome --product-version;
echo ChromeDriverVersion: $ChromeDriverVersion
$TempFilePath = [System.IO.Path]::GetTempFileName();
$TempZipFilePath = $TempFilePath.Replace(".tmp", ".zip");
Rename-Item -Path $TempFilePath -NewName $TempZipFilePath;
$TempFileUnzipPath = $TempFilePath.Replace(".tmp", "");
Invoke-WebRequest "https://chromedriver.storage.googleapis.com/$ChromeDriverVersion/chromedriver_linux64.zip" -OutFile $TempZipFilePath;
Expand-Archive $TempZipFilePath -DestinationPath $TempFileUnzipPath;
echo TempFileUnzipPath: $TempFileUnzipPath
dir $TempFileUnzipPath

.\scripts\set_AppConfig_for_tests.ps1 ".\Ocaramba.Tests.NUnit\bin\Debug\netcoreapp3.1" "appsettings.json" "appSettings" "browser|PathToChromeDriverDirectory" "Chrome|$TempFileUnzipPath" -logValues -json
.\scripts\set_AppConfig_for_tests.ps1 ".\Ocaramba.Tests.Angular\bin\Debug\netcoreapp3.1" "appsettings.json" "appSettings" "browser|PathToChromeDriverDirectory" "Chrome|$TempFileUnzipPath" -logValues -json
Expand All @@ -18,9 +21,6 @@ Expand-Archive $TempZipFilePath -DestinationPath $TempFileUnzipPath;
.\scripts\set_AppConfig_for_tests.ps1 ".\Ocaramba.Tests.Xunit\bin\Debug\netcoreapp3.1" "appsettings.json" "appSettings" "browser|PathToChromeDriverDirectory" "Chrome|$TempFileUnzipPath" -logValues -json
.\scripts\set_AppConfig_for_tests.ps1 ".\Ocaramba.Tests.MsTest\bin\Debug\netcoreapp3.1" "appsettings.json" "appSettings" "browser|PathToChromeDriverDirectory" "Chrome|$TempFileUnzipPath" -logValues -json
.\scripts\set_AppConfig_for_tests.ps1 ".\Ocaramba.UnitTests\bin\Debug\netcoreapp3.1" "appsettings.json" "appSettings" "browser|PathToChromeDriverDirectory" "Chrome|$TempFileUnzipPath" -logValues -json
.\scripts\set_AppConfig_for_tests.ps1 ".\Ocaramba.Tests.Angular\bin\Debug\net472" "Ocaramba.Tests.Angular.dll.config" "//appSettings" "browser|PathToChromeDriverDirectory" "Chrome|$TempFileUnzipPath" -logValues
.\scripts\set_AppConfig_for_tests.ps1 ".\Ocaramba.Tests.NUnit\bin\Debug\net472" "Ocaramba.Tests.NUnit.dll.config" "//appSettings" "browser|PathToChromeDriverDirectory" "Chrome|$TempFileUnzipPath" -logValues
.\scripts\set_AppConfig_for_tests.ps1 ".\Ocaramba.UnitTests\bin\Debug\net472" "Ocaramba.UnitTests.dll.config" "//appSettings" "browser|PathToChromeDriverDirectory" "Chrome|$TempFileUnzipPath" -logValues

echo '********************************************Executing tests********************************************'

Expand Down
2 changes: 1 addition & 1 deletion Ocaramba.Tests.Angular/Ocaramba.Tests.Angular.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

<ItemGroup>
<PackageReference Include="Appveyor.TestLogger" Version="2.0.0" />
<PackageReference Include="NLog" Version="4.7.11" />
<PackageReference Include="NLog" Version="4.7.13" />
<PackageReference Include="NUnit" Version="3.13.2" />
<PackageReference Include="NUnit.Runners" Version="3.12.0" />
<PackageReference Include="NUnit3TestAdapter" Version="4.1.0">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
</PackageReference>
<PackageReference Include="Selenium.Support" Version="4.1.0" />
<PackageReference Include="Selenium.WebDriver" Version="4.1.0" />
<PackageReference Include="NLog" Version="4.7.11" />
<PackageReference Include="NLog" Version="4.7.13" />
<PackageReference Include="Selenium.WebDriver.ChromeDriver" Version="96.0.4664.4500" />
<PackageReference Include="Selenium.WebDriver.GeckoDriver" Version="0.30.0.1" />
</ItemGroup>
Expand Down
2 changes: 1 addition & 1 deletion Ocaramba.Tests.Features/Ocaramba.Tests.Features.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<ItemGroup>
<PackageReference Include="Appveyor.TestLogger" Version="2.0.0" />
<PackageReference Include="BoDi" Version="1.5.0" />
<PackageReference Include="NLog" Version="4.7.11" />
<PackageReference Include="NLog" Version="4.7.13" />
<PackageReference Include="NUnit.Runners" Version="3.12.0" />
<PackageReference Include="NUnit3TestAdapter" Version="4.1.0">
<PrivateAssets>all</PrivateAssets>
Expand Down
2 changes: 1 addition & 1 deletion Ocaramba.Tests.MsTest/Ocaramba.Tests.MsTest.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<PackageReference Include="Selenium.WebDriver" Version="4.1.0" />
<PackageReference Include="MSTest.TestAdapter" Version="2.2.8" />
<PackageReference Include="MSTest.TestFramework" Version="2.2.8" />
<PackageReference Include="NLog" Version="4.7.11" />
<PackageReference Include="NLog" Version="4.7.13" />
<PackageReference Include="Selenium.WebDriver.ChromeDriver" Version="96.0.4664.4500" />
<PackageReference Include="Selenium.WebDriver.GeckoDriver" Version="0.30.0.1" />
<PackageReference Include="Selenium.WebDriver.IEDriver" Version="4.0.0" />
Expand Down
2 changes: 1 addition & 1 deletion Ocaramba.Tests.NUnit/Ocaramba.Tests.NUnit.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<ItemGroup>
<PackageReference Include="Appveyor.TestLogger" Version="2.0.0" />
<PackageReference Include="Microsoft.TestPlatform.TestHost" Version="17.0.0" />
<PackageReference Include="NLog" Version="4.7.11" />
<PackageReference Include="NLog" Version="4.7.13" />
<PackageReference Include="NPOI" Version="2.5.5" />
<PackageReference Include="NUnit" Version="3.13.2" />
<PackageReference Include="NUnit.Runners" Version="3.12.0" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<ItemGroup>
<PackageReference Include="Appveyor.TestLogger" Version="2.0.0" />
<PackageReference Include="Microsoft.TestPlatform.TestHost" Version="17.0.0" />
<PackageReference Include="NLog" Version="4.7.11" />
<PackageReference Include="NLog" Version="4.7.13" />
<PackageReference Include="NPOI" Version="2.5.5" />
<PackageReference Include="NUnit" Version="3.13.2" />
<PackageReference Include="NUnit.Runners" Version="3.12.0" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<ItemGroup>
<PackageReference Include="Selenium.Support" Version="4.1.0" />
<PackageReference Include="Selenium.WebDriver" Version="4.1.0" />
<PackageReference Include="NLog" Version="4.7.11" />
<PackageReference Include="NLog" Version="4.7.13" />
<PackageReference Include="Selenium.WebDriver.ChromeDriver" Version="96.0.4664.4500" />
<PackageReference Include="Selenium.WebDriver.GeckoDriver" Version="0.30.0.1" />
</ItemGroup>
Expand Down
2 changes: 1 addition & 1 deletion Ocaramba.Tests.Xunit/Ocaramba.Tests.Xunit.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<PackageReference Include="Appveyor.TestLogger" Version="2.0.0" />
<PackageReference Include="Selenium.Support" Version="4.1.0" />
<PackageReference Include="Selenium.WebDriver" Version="4.1.0" />
<PackageReference Include="NLog" Version="4.7.11" />
<PackageReference Include="NLog" Version="4.7.13" />
<PackageReference Include="Selenium.WebDriver.ChromeDriver" Version="96.0.4664.4500" />
<PackageReference Include="Selenium.WebDriver.GeckoDriver" Version="0.30.0.1" />
<PackageReference Include="System.Configuration.ConfigurationManager" Version="4.7.0" />
Expand Down
4 changes: 2 additions & 2 deletions Ocaramba.UnitTests/Ocaramba.UnitTests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@

<ItemGroup>
<PackageReference Include="Appveyor.TestLogger" Version="2.0.0" />
<PackageReference Include="Magick.NET-Q16-AnyCPU" Version="8.4.0" />
<PackageReference Include="NLog" Version="4.7.11" />
<PackageReference Include="Magick.NET-Q16-AnyCPU" Version="8.5.0" />
<PackageReference Include="NLog" Version="4.7.13" />
<PackageReference Include="NUnit" Version="3.13.2" />
<PackageReference Include="NUnit.Runners" Version="3.12.0" />
<PackageReference Include="NUnit3TestAdapter" Version="4.1.0">
Expand Down
4 changes: 2 additions & 2 deletions Ocaramba/Ocaramba.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
<None Include="..\icon.png" Pack="true" PackagePath="\" />
<PackageReference Include="Selenium.Support" Version="4.1.0" />
<PackageReference Include="Selenium.WebDriver" Version="4.1.0" />
<PackageReference Include="NLog" Version="4.7.11" />
<PackageReference Include="NLog" Version="4.7.13" />
<PackageReference Include="Selenium.WebDriver.ChromeDriver" Version="96.0.4664.4500" />
<PackageReference Include="Selenium.WebDriver.GeckoDriver" Version="0.30.0.1" />
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.1.1" PrivateAssets="All" />
Expand All @@ -38,7 +38,7 @@
<ItemGroup Condition="'$(TargetFramework)' == 'net472' Or '$(TargetFramework)' == 'net45'">
<Reference Include="System.Configuration" />
<Reference Include="System.Windows.Forms" />
<PackageReference Include="Microsoft.AnalysisServices.AdomdClient.retail.amd64" Version="19.26.1.2" />
<PackageReference Include="Microsoft.AnalysisServices.AdomdClient.retail.amd64" Version="19.32.0" />
</ItemGroup>
<ItemGroup Condition="'$(TargetFramework)' == 'netcoreapp3.1'">
<PackageReference Include="Microsoft.Extensions.Configuration">
Expand Down
2 changes: 1 addition & 1 deletion OcarambaLite/OcarambaLite.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
<None Include="..\icon.png" Pack="true" PackagePath="\" />
<PackageReference Include="Selenium.WebDriver" Version="4.1.0" />
<PackageReference Include="Selenium.Support" Version="4.1.0" />
<PackageReference Include="NLog" Version="4.7.11" />
<PackageReference Include="NLog" Version="4.7.13" />
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.1.1" PrivateAssets="All" />
<PackageReference Include="StyleCop.Analyzers" Version="1.1.118">
<PrivateAssets>all</PrivateAssets>
Expand Down

0 comments on commit 79bf8e3

Please sign in to comment.