Skip to content

Commit 700a3df

Browse files
authored
Merge branch 'trunk' into trunk
2 parents cd12508 + fdab422 commit 700a3df

File tree

743 files changed

+47224
-22874
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

743 files changed

+47224
-22874
lines changed

.github/dependabot.yml

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
version: 2
2+
updates:
3+
4+
# Maintain dependencies for GitHub Actions
5+
- package-ecosystem: "github-actions"
6+
directory: "/"
7+
schedule:
8+
interval: "daily"

.github/label-commenter-config.yml

+61
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
# Configuration for Label Commenter - https://github.com/peaceiris/actions-label-commenter
2+
labels:
3+
- name: needs-triaging
4+
labeled:
5+
issue:
6+
body: |
7+
@{{ issue.user.login }}, thank you for creating this issue. We will troubleshoot it as soon as we can.
8+
9+
---
10+
<details>
11+
<summary>Info for maintainers</summary>
12+
<div>
13+
<br>
14+
<p>
15+
Triage this issue by using labels.
16+
</p>
17+
<p>
18+
If information is missing, add a helpful comment and then <code>I-issue-template</code> label.
19+
</p>
20+
<p>
21+
If the issue is a question, add the <code>I-question</code> label.
22+
</p>
23+
<p>
24+
If the issue is valid but there is no time to troubleshoot it, consider adding the <code>help wanted</code> label.
25+
</p>
26+
<p>
27+
After troubleshooting the issue, please add the <code>R-awaiting answer</code> label.
28+
</p>
29+
<p>
30+
Thank you!
31+
</p>
32+
</div>
33+
</details>
34+
- name: I-issue-template
35+
labeled:
36+
issue:
37+
body: |
38+
Hi, @{{ issue.user.login }}.
39+
Please follow the issue template, we need more information to reproduce the issue.
40+
41+
Either a complete code snippet and URL/HTML (if more than one file is needed, provide a GitHub repo and instructions to run the code), the specific versions used, or a more detailed description to help us understand the issue.
42+
43+
Note: If you cannot share your code and URL/HTML, any complete code snippet and URL/HTML that reproduces the issue is good enough.
44+
45+
Reply to this issue when all information is provided, thank you.
46+
- name: I-question
47+
labeled:
48+
issue:
49+
body: |
50+
💬 Please ask questions at:
51+
* 📫 The [Selenium user group](https://groups.google.com/forum/#!forum/selenium-users)
52+
* 📮 [StackOverflow](https://stackoverflow.com/questions/tagged/selenium)
53+
* 🗣 Our [IRC/Slack/Matrix channels](https://www.selenium.dev/support/) where the community can help you as well
54+
action: close
55+
- name: help wanted
56+
labeled:
57+
issue:
58+
body: |
59+
This issue is looking for contributors.
60+
61+
Please comment below or reach out to us through our [IRC/Slack/Matrix channels](https://www.selenium.dev/support/) if you are interested.

.github/workflows/calibreapp-image-actions.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
github.event.pull_request.head.repo.full_name == github.repository)
3737
steps:
3838
- name: Checkout Branch
39-
uses: actions/checkout@v2
39+
uses: actions/checkout@v4
4040
- name: Compress Images
4141
id: calibre
4242
uses: calibreapp/image-actions@main
@@ -49,7 +49,7 @@ jobs:
4949
if: |
5050
github.event_name != 'pull_request' &&
5151
steps.calibre.outputs.markdown != ''
52-
uses: peter-evans/create-pull-request@v3
52+
uses: peter-evans/create-pull-request@v6
5353
with:
5454
title: Auto Compress Images
5555
branch-suffix: timestamp

.github/workflows/deploy.yml

+5-5
Original file line numberDiff line numberDiff line change
@@ -8,23 +8,23 @@ on:
88
jobs:
99
deploy:
1010
if: contains(toJson(github.event.commits), '[deploy site]') == true
11-
runs-on: ubuntu-20.04
11+
runs-on: ubuntu-22.04
1212
steps:
1313
- name: Checkout repo
14-
uses: actions/checkout@v2
14+
uses: actions/checkout@v4
1515
with:
1616
fetch-depth: 0
1717
- name: Setup Hugo
18-
uses: peaceiris/actions-hugo@v2
18+
uses: peaceiris/actions-hugo@v3
1919
with:
20-
hugo-version: '0.101.0'
20+
hugo-version: ' 0.125.4'
2121
extended: true
2222
- name: Build
2323
run: chmod +x build-site.sh && ./build-site.sh
2424
env:
2525
SELENIUM_CI_TOKEN: ${{secrets.SELENIUM_CI_TOKEN}}
2626
- name: Deploy
27-
uses: peaceiris/actions-gh-pages@v3
27+
uses: peaceiris/actions-gh-pages@v4
2828
with:
2929
personal_token: ${{ secrets.SELENIUM_CI_TOKEN }}
3030
publish_dir: ./website_and_docs/public

.github/workflows/dotnet-examples.yml

+52-17
Original file line numberDiff line numberDiff line change
@@ -21,33 +21,68 @@ env:
2121
GH_TOKEN: ${{ secrets.SELENIUM_CI_TOKEN }}
2222

2323
jobs:
24-
test_examples:
24+
tests:
2525
strategy:
2626
fail-fast: false
2727
matrix:
28-
os: [ ubuntu-latest, windows-latest, macos-latest ]
29-
runs-on: ${{ matrix.os }}
28+
os: [ ubuntu, windows, macos ]
29+
release: [ stable, nightly ]
30+
runs-on: ${{ format('{0}-latest', matrix.os) }}
3031
steps:
3132
- name: Checkout GitHub repo
32-
uses: actions/checkout@v2
33+
uses: actions/checkout@v4
34+
- name: Remove driver directories Windows
35+
if: matrix.os == 'windows'
36+
run: |
37+
rm "$env:ChromeWebDriver" -r -v
38+
rm "$env:EdgeWebDriver" -r -v
39+
rm "$env:GeckoWebDriver" -r -v
40+
- name: Remove driver directories Non-Windows
41+
if: matrix.os != 'windows'
42+
run: |
43+
sudo rm -rf $CHROMEWEBDRIVER $EDGEWEBDRIVER $GECKOWEBDRIVER
3344
- name: Start Xvfb
34-
if: matrix.os == 'ubuntu-latest'
45+
if: matrix.os == 'ubuntu'
3546
run: Xvfb :99 &
36-
- name: Set up .Net
37-
uses: actions/setup-dotnet@v2
47+
- name: Set up .Net Stable
48+
if: matrix.release == 'stable'
49+
uses: actions/setup-dotnet@v4
3850
with:
39-
dotnet-version: 5.0.x
40-
- name: Install Chrome
41-
uses: browser-actions/setup-chrome@latest
42-
- name: Install Edge
43-
uses: browser-actions/setup-edge@latest
44-
- name: Install Firefox
45-
uses: abhi1693/[email protected]
51+
dotnet-version: 6.x
52+
- name: Set up .Net Nightly
53+
if: matrix.release == 'nightly'
54+
uses: actions/setup-dotnet@v4
4655
with:
47-
browser: firefox
48-
version: latest
56+
dotnet-version: 6.x
57+
source-url: https://nuget.pkg.github.com/seleniumhq/index.json
58+
env:
59+
NUGET_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}
60+
- name: Update Nightly version non-Windows
61+
if: matrix.release == 'nightly' && matrix.os != 'windows'
62+
run:
63+
|
64+
latest_nightly=$(./scripts/latest-nightly-version.sh nuget Selenium.WebDriver)
65+
dotnet add examples/dotnet/SeleniumDocs/SeleniumDocs.csproj package Selenium.WebDriver --version $latest_nightly
66+
dotnet add examples/dotnet/SeleniumDocs/SeleniumDocs.csproj package Selenium.Support --version $latest_nightly
67+
env:
68+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
69+
- name: Update Nightly version Windows
70+
if: matrix.release == 'nightly' && matrix.os == 'windows'
71+
shell: pwsh
72+
run:
73+
|
74+
$latest_nightly = ./scripts/latest-nightly-version.ps1 nuget Selenium.WebDriver
75+
dotnet add examples/dotnet/SeleniumDocs/SeleniumDocs.csproj package Selenium.WebDriver --version $latest_nightly
76+
dotnet add examples/dotnet/SeleniumDocs/SeleniumDocs.csproj package Selenium.Support --version $latest_nightly
77+
env:
78+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
79+
- name: Set up Java
80+
uses: actions/setup-java@v4
81+
with:
82+
distribution: 'temurin'
83+
java-version: 11
4984
- name: Run tests
50-
uses: nick-invision/retry@v2.8.2
85+
uses: nick-fields/retry@v3.0.0
5186
with:
5287
timeout_minutes: 20
5388
max_attempts: 3

.github/workflows/java-examples.yml

+48-18
Original file line numberDiff line numberDiff line change
@@ -21,37 +21,67 @@ env:
2121
GH_TOKEN: ${{ secrets.SELENIUM_CI_TOKEN }}
2222

2323
jobs:
24-
test_examples:
24+
tests:
2525
strategy:
2626
fail-fast: false
2727
matrix:
28-
os: [ ubuntu-latest, windows-latest, macos-latest ]
29-
runs-on: ${{ matrix.os }}
28+
os: [ ubuntu, windows, macos ]
29+
release: [ stable, nightly ]
30+
runs-on: ${{ format('{0}-latest', matrix.os) }}
3031
steps:
3132
- name: Checkout GitHub repo
32-
uses: actions/checkout@v2
33+
uses: actions/checkout@v4
34+
- name: Remove driver directories Windows
35+
if: matrix.os == 'windows'
36+
run: |
37+
rm "$env:ChromeWebDriver" -r -v
38+
rm "$env:EdgeWebDriver" -r -v
39+
rm "$env:GeckoWebDriver" -r -v
40+
- name: Remove driver directories Non-Windows
41+
if: matrix.os != 'windows'
42+
run: |
43+
sudo rm -rf $CHROMEWEBDRIVER $EDGEWEBDRIVER $GECKOWEBDRIVER
3344
- name: Start Xvfb
34-
if: matrix.os == 'ubuntu-latest'
45+
if: matrix.os == 'ubuntu'
3546
run: Xvfb :99 &
3647
- name: Set up Java
37-
uses: actions/setup-java@v2
48+
uses: actions/setup-java@v4
3849
with:
3950
distribution: 'temurin'
40-
java-version: 8
41-
- name: Install Chrome
42-
uses: browser-actions/setup-chrome@latest
43-
- name: Install Edge
44-
uses: browser-actions/setup-edge@latest
45-
- name: Install Firefox
46-
uses: abhi1693/[email protected]
47-
with:
48-
browser: firefox
49-
version: latest
50-
- name: Run Tests
51-
uses: nick-invision/[email protected]
51+
java-version: 11
52+
- name: Run Tests Stable
53+
if: matrix.release == 'stable'
54+
uses: nick-invision/[email protected]
5255
with:
5356
timeout_minutes: 20
5457
max_attempts: 3
5558
command: |
5659
cd examples/java
5760
mvn -B test
61+
- name: Run Tests Nightly Linux/macOS
62+
if: matrix.release == 'nightly' && matrix.os != 'windows'
63+
uses: nick-invision/[email protected]
64+
with:
65+
timeout_minutes: 20
66+
max_attempts: 3
67+
command: |
68+
pip install yq
69+
xml_content=$(curl -sf https://oss.sonatype.org/service/local/repositories/snapshots/content/org/seleniumhq/selenium/selenium-java/)
70+
latest_snapshot=$(echo $xml_content | xq '.content.data."content-item"' | jq -r 'sort_by(.lastModified) | reverse | .[0] | .text')
71+
echo $latest_snapshot
72+
cd examples/java
73+
mvn -B -U test -Dselenium.version="$latest_snapshot"
74+
75+
- name: Run Tests Nightly Windows
76+
if: matrix.release == 'nightly' && matrix.os == 'windows'
77+
uses: nick-invision/[email protected]
78+
with:
79+
timeout_minutes: 20
80+
max_attempts: 3
81+
command: |
82+
pip install yq
83+
$xml_content = Invoke-WebRequest -Uri "https://oss.sonatype.org/service/local/repositories/snapshots/content/org/seleniumhq/selenium/selenium-java/"
84+
$latest_snapshot = $xml_content.Content | xq '.content.data.\"content-item\"' | jq -r 'sort_by(.lastModified) | reverse | .[0] | .text'
85+
Write-Output $latest_snapshot
86+
cd examples/java
87+
mvn -B -U test "-Dselenium.version=$latest_snapshot"

0 commit comments

Comments
 (0)