Skip to content

Nightly and Stable for JS and DotNet #1682

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 7 commits into from
Apr 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 11 additions & 2 deletions .github/workflows/dotnet-examples.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ jobs:
fail-fast: false
matrix:
os: [ ubuntu-latest, windows-latest, macos-latest ]
release: [ stable, nightly ]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout GitHub repo
Expand All @@ -43,7 +44,13 @@ jobs:
- name: Start Xvfb
if: matrix.os == 'ubuntu-latest'
run: Xvfb :99 &
- name: Set up .Net
- name: Set up .Net Stable
if: matrix.release == 'stable'
uses: actions/setup-dotnet@v4
with:
dotnet-version: 6.x
- name: Set up .Net Nightly
if: matrix.release == 'nightly'
uses: actions/setup-dotnet@v4
with:
dotnet-version: 6.x
Expand All @@ -56,10 +63,12 @@ jobs:
distribution: 'temurin'
java-version: 11
- name: Run tests
uses: nick-invision/[email protected]
uses: nick-fields/[email protected]
with:
timeout_minutes: 20
max_attempts: 3
command: |
cd examples/dotnet/SeleniumDocs
dotnet test
env:
SE_RELEASE: ${{ matrix.release }}
22 changes: 22 additions & 0 deletions .github/workflows/js-examples.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ jobs:
fail-fast: false
matrix:
os: [ ubuntu-latest, windows-latest, macos-latest ]
release: [ stable, nightly ]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout GitHub repo
Expand Down Expand Up @@ -77,9 +78,30 @@ jobs:
- name: Start Xvfb
if: matrix.os == 'ubuntu-latest'
run: Xvfb :99 &
- name: Setup Node Stable
if: matrix.release == 'stable'
uses: actions/setup-node@v4
with:
node-version: '18.x'
- name: Setup Node Nightly
if: matrix.release == 'nightly'
uses: actions/setup-node@v4
with:
node-version: '18.x'
registry-url: 'https://npm.pkg.github.com'
- name: Use Nightly package.json in Ubuntu/macOS
if: matrix.release == 'nightly' && matrix.os != 'windows-latest'
working-directory: ./examples/javascript
run: mv package.nightly.json package.json
- name: Use Nightly package.json in Windows
if: matrix.release == 'nightly' && matrix.os == 'windows-latest'
working-directory: ./examples/javascript
run: Move-Item -Path package.nightly.json -Destination package.json -Force
- name: Install Requirements
working-directory: ./examples/javascript
run: npm install
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Run tests
uses: nick-invision/[email protected]
with:
Expand Down
8 changes: 8 additions & 0 deletions examples/dotnet/SeleniumDocs/SeleniumDocs.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,18 @@
<PackageReference Include="Microsoft.IdentityModel.Tokens" Version="7.5.1" />
<PackageReference Include="MSTest.TestAdapter" Version="3.3.1" />
<PackageReference Include="MSTest.TestFramework" Version="3.3.1" />
</ItemGroup>

<ItemGroup Label="Nightly" Condition=" '$(SE_RELEASE)' == 'nightly' ">
<PackageReference Include="Selenium.Support" Version="4.20.0-nightly202404181318" />
<PackageReference Include="Selenium.WebDriver" Version="4.20.0-nightly202404181318" />
</ItemGroup>

<ItemGroup Label="Stable" Condition=" '$(SE_RELEASE)' == 'stable' ">
<PackageReference Include="Selenium.Support" Version="4.19.0" />
<PackageReference Include="Selenium.WebDriver" Version="4.19.0" />
</ItemGroup>

<ItemGroup>
<Folder Include="LocalPackages" />
</ItemGroup>
Expand Down
16 changes: 16 additions & 0 deletions examples/javascript/package.nightly.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"name": "javascript-examples",
"version": "1.0.0",
"scripts": {
"test": "npx mocha test/**/*.spec.js --timeout 60000"
},
"author": "The Selenium project",
"license": "Apache-2.0",
"dependencies": {
"assert": "2.1.0",
"selenium-webdriver": "npm:@seleniumhq/[email protected]"
},
"devDependencies": {
"mocha": "10.4.0"
}
}
Loading