File tree 12 files changed +108
-47
lines changed
12 files changed +108
-47
lines changed Original file line number Diff line number Diff line change 56
56
dotnet-version : 6.x
57
57
source-url : https://nuget.pkg.github.com/seleniumhq/index.json
58
58
env :
59
- NUGET_AUTH_TOKEN : ${{secrets.GITHUB_TOKEN}}
59
+ NUGET_AUTH_TOKEN : ${{secrets.GITHUB_TOKEN}}
60
+ - name : Update Nightly version non-Windows
61
+ if : matrix.release == 'nightly' && matrix.os != 'windows-latest'
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-latest'
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 }}
60
79
- name : Set up Java
61
80
uses : actions/setup-java@v4
62
81
with :
70
89
command : |
71
90
cd examples/dotnet/SeleniumDocs
72
91
dotnet test
73
- env :
74
- SE_RELEASE : ${{ matrix.release }}
Original file line number Diff line number Diff line change 26
26
fail-fast : false
27
27
matrix :
28
28
os : [ ubuntu-latest, windows-latest, macos-latest ]
29
+ release : [ stable, nightly ]
29
30
runs-on : ${{ matrix.os }}
30
31
steps :
31
32
- name : Checkout GitHub repo
@@ -48,11 +49,21 @@ jobs:
48
49
with :
49
50
distribution : ' temurin'
50
51
java-version : 11
51
- - name : Run Tests
52
+ - name : Run Tests Stable
53
+ if : matrix.release == 'stable'
52
54
uses :
nick-invision/[email protected]
53
55
with :
54
56
timeout_minutes : 20
55
57
max_attempts : 3
56
58
command : |
57
59
cd examples/java
58
60
mvn -B test
61
+ - name : Run Tests Nightly
62
+ if : matrix.release == 'nightly'
63
+ uses :
nick-invision/[email protected]
64
+ with :
65
+ timeout_minutes : 20
66
+ max_attempts : 3
67
+ command : |
68
+ cd examples/java
69
+ mvn -B -U test -Dselenium.version=4.20.0-SNAPSHOT
Original file line number Diff line number Diff line change @@ -91,12 +91,22 @@ jobs:
91
91
registry-url : ' https://npm.pkg.github.com'
92
92
- name : Use Nightly package.json in Ubuntu/macOS
93
93
if : matrix.release == 'nightly' && matrix.os != 'windows-latest'
94
- working-directory : ./examples/javascript
95
- run : mv package.nightly.json package.json
94
+ run :
95
+ |
96
+ latest_nightly=$(./scripts/latest-nightly-version.sh npm selenium-webdriver)
97
+ npm install --prefix ./examples/javascript --save selenium-webdriver@npm:@seleniumhq/selenium-webdriver@$latest_nightly
98
+ env :
99
+ GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
100
+ NODE_AUTH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
96
101
- name : Use Nightly package.json in Windows
97
102
if : matrix.release == 'nightly' && matrix.os == 'windows-latest'
98
- working-directory : ./examples/javascript
99
- run : Move-Item -Path package.nightly.json -Destination package.json -Force
103
+ run :
104
+ |
105
+ $latest_nightly = ./scripts/latest-nightly-version.ps1 npm selenium-webdriver
106
+ npm install --prefix ./examples/javascript --save selenium-webdriver@npm:@seleniumhq/selenium-webdriver@$latest_nightly
107
+ env :
108
+ GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
109
+ NODE_AUTH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
100
110
- name : Install Requirements
101
111
working-directory : ./examples/javascript
102
112
run : npm install
Original file line number Diff line number Diff line change 26
26
fail-fast : false
27
27
matrix :
28
28
os : [ ubuntu-latest, windows-latest, macos-latest ]
29
+ release : [ stable, nightly ]
29
30
runs-on : ${{ matrix.os }}
30
31
steps :
31
32
- name : Checkout GitHub repo
47
48
uses : actions/setup-python@v5
48
49
with :
49
50
python-version : 3.8
50
- - name : Install dependencies
51
+ - name : Install dependencies nightly
52
+ if : matrix.release == 'nightly'
53
+ working-directory : ./examples/python
54
+ run : |
55
+ python -m pip install --upgrade pip
56
+ pip install -r requirements.txt
57
+ pip install -i https://test.pypi.org/simple/ --extra-index-url https://pypi.org/simple --force-reinstall -v selenium
58
+ - name : Install dependencies stable
59
+ if : matrix.release == 'stable'
51
60
working-directory : ./examples/python
52
61
run : |
53
62
python -m pip install --upgrade pip
Original file line number Diff line number Diff line change 26
26
fail-fast : false
27
27
matrix :
28
28
os : [ ubuntu-latest, windows-latest, macos-latest ]
29
+ release : [ stable, nightly ]
29
30
runs-on : ${{ matrix.os }}
30
31
steps :
31
32
- name : Checkout GitHub repo
48
49
with :
49
50
ruby-version : 3.0
50
51
bundler-cache : true
51
- - name : Install Gems
52
+ - name : Install Gems Nightly non-Windows
53
+ if : matrix.release == 'nightly' && matrix.os != 'windows-latest'
54
+ run :
55
+ |
56
+ latest_nightly_webdriver=$(./scripts/latest-nightly-version.sh rubygems selenium-webdriver)
57
+ cd examples/ruby
58
+ bundle install
59
+ bundle remove selenium-webdriver
60
+ bundle add selenium-webdriver --version $latest_nightly_webdriver --source "https://token:${{secrets.GITHUB_TOKEN}}@rubygems.pkg.github.com/seleniumhq"
61
+ env :
62
+ GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
63
+ - name : Install Gems Nightly Windows
64
+ if : matrix.release == 'nightly' && matrix.os == 'windows-latest'
65
+ run :
66
+ |
67
+ $latest_nightly_webdriver = ./scripts/latest-nightly-version.ps1 rubygems selenium-webdriver
68
+ cd examples/ruby
69
+ bundle install
70
+ bundle remove selenium-webdriver
71
+ bundle add selenium-webdriver --version $latest_nightly_webdriver --source "https://token:${{secrets.GITHUB_TOKEN}}@rubygems.pkg.github.com/seleniumhq"
72
+ env :
73
+ GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
74
+ - name : Install Gems Stable
75
+ if : matrix.release == 'stable'
52
76
working-directory : ./examples/ruby
53
77
run : bundle install
54
78
- name : Set up Java
Original file line number Diff line number Diff line change 10
10
<PackageReference Include =" Microsoft.IdentityModel.Tokens" Version =" 7.5.1" />
11
11
<PackageReference Include =" MSTest.TestAdapter" Version =" 3.3.1" />
12
12
<PackageReference Include =" MSTest.TestFramework" Version =" 3.3.1" />
13
- </ItemGroup >
14
-
15
- <ItemGroup Label =" Nightly" Condition =" '$(SE_RELEASE)' == 'nightly' " >
16
- <PackageReference Include =" Selenium.Support" Version =" 4.20.0-nightly202404181318" />
17
- <PackageReference Include =" Selenium.WebDriver" Version =" 4.20.0-nightly202404181318" />
18
- </ItemGroup >
19
-
20
- <ItemGroup Label =" Stable" Condition =" '$(SE_RELEASE)' == 'stable' " >
21
13
<PackageReference Include =" Selenium.Support" Version =" 4.19.0" />
22
14
<PackageReference Include =" Selenium.WebDriver" Version =" 4.19.0" />
23
15
</ItemGroup >
Original file line number Diff line number Diff line change 13
13
<maven .compiler.source>11</maven .compiler.source>
14
14
<maven .compiler.target>11</maven .compiler.target>
15
15
<project .build.sourceEncoding>UTF-8</project .build.sourceEncoding>
16
+ <selenium .version>4.19.1</selenium .version>
16
17
</properties >
17
18
18
19
<repositories >
29
30
<dependency >
30
31
<groupId >org.seleniumhq.selenium</groupId >
31
32
<artifactId >selenium-java</artifactId >
32
- <version >4.19.1 </version >
33
+ <version >${selenium.version} </version >
33
34
</dependency >
34
35
<dependency >
35
36
<groupId >org.seleniumhq.selenium</groupId >
36
37
<artifactId >selenium-grid</artifactId >
37
- <version >4.19.1 </version >
38
+ <version >${selenium.version} </version >
38
39
</dependency >
39
40
<dependency >
40
41
<groupId >org.junit.jupiter</groupId >
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -7,13 +7,5 @@ gem 'rake', '~> 13.0'
7
7
gem 'rspec' , '~> 3.0'
8
8
gem 'rubocop' , '~> 1.35'
9
9
gem 'rubocop-rspec' , '~> 2.12'
10
- gem 'selenium-devtools' , '~> 0.122'
11
-
12
- if ENV [ 'SE_NIGHTLY' ]
13
- source 'https://rubygems.pkg.github.com/seleniumhq' do
14
- selenium = 'selenium-webdriver'
15
- gem selenium , '~> 4.19.0.nightly'
16
- end
17
- else
18
- gem 'selenium-webdriver' , '= 4.19.0'
19
- end
10
+ gem 'selenium-devtools' , '= 0.123'
11
+ gem 'selenium-webdriver' , '= 4.19.0'
Original file line number Diff line number Diff line change @@ -77,7 +77,7 @@ DEPENDENCIES
77
77
rspec (~> 3.0 )
78
78
rubocop (~> 1.35 )
79
79
rubocop-rspec (~> 2.12 )
80
- selenium-devtools (~> 0.122 )
80
+ selenium-devtools (= 0.123 )
81
81
selenium-webdriver (= 4.19.0 )
82
82
83
83
BUNDLED WITH
Original file line number Diff line number Diff line change
1
+ $PACKAGE_TYPE = $args [0 ]
2
+ $PACKAGE_NAME = $args [1 ]
3
+
4
+ $PATH_PACKAGES_API = " orgs/seleniumhq/packages/$PACKAGE_TYPE /$PACKAGE_NAME /versions"
5
+ $ACCEPT_HEADER = " Accept: application/vnd.github+json"
6
+ $VERSION_HEADER = " X-GitHub-Api-Version: 2022-11-28"
7
+
8
+ $ghApiCommand = " gh api -H `" $ACCEPT_HEADER `" -H `" $VERSION_HEADER `" $PATH_PACKAGES_API | jq -r '.[0].name'"
9
+ Invoke-Expression - Command $ghApiCommand
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+
3
+ set -e
4
+
5
+ PACKAGE_TYPE=" $1 "
6
+ PACKAGE_NAME=" $2 "
7
+
8
+ PATH_PACKAGES_API=" orgs/seleniumhq/packages/$PACKAGE_TYPE /$PACKAGE_NAME /versions"
9
+ ACCEPT_HEADER=" Accept: application/vnd.github+json"
10
+ VERSION_HEADER=" X-GitHub-Api-Version: 2022-11-28"
11
+
12
+ gh api -H " $ACCEPT_HEADER " -H " $VERSION_HEADER " $PATH_PACKAGES_API | jq -r ' .[0].name'
You can’t perform that action at this time.
0 commit comments