File tree Expand file tree Collapse file tree 4 files changed +57
-2
lines changed Expand file tree Collapse file tree 4 files changed +57
-2
lines changed 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
43
44
- name : Start Xvfb
44
45
if : matrix.os == 'ubuntu-latest'
45
46
run : Xvfb :99 &
46
- - name : Set up .Net
47
+ - name : Set up .Net Stable
48
+ if : matrix.release == 'stable'
49
+ uses : actions/setup-dotnet@v4
50
+ with :
51
+ dotnet-version : 6.x
52
+ - name : Set up .Net Nightly
53
+ if : matrix.release == 'nightly'
47
54
uses : actions/setup-dotnet@v4
48
55
with :
49
56
dotnet-version : 6.x
@@ -56,10 +63,12 @@ jobs:
56
63
distribution : ' temurin'
57
64
java-version : 11
58
65
- name : Run tests
59
- uses : nick-invision /retry@v3.0.0
66
+ uses : nick-fields /retry@v3.0.0
60
67
with :
61
68
timeout_minutes : 20
62
69
max_attempts : 3
63
70
command : |
64
71
cd examples/dotnet/SeleniumDocs
65
72
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
77
78
- name : Start Xvfb
78
79
if : matrix.os == 'ubuntu-latest'
79
80
run : Xvfb :99 &
81
+ - name : Setup Node Stable
82
+ if : matrix.release == 'stable'
83
+ uses : actions/setup-node@v4
84
+ with :
85
+ node-version : ' 18.x'
86
+ - name : Setup Node Nightly
87
+ if : matrix.release == 'nightly'
88
+ uses : actions/setup-node@v4
89
+ with :
90
+ node-version : ' 18.x'
91
+ registry-url : ' https://npm.pkg.github.com'
92
+ - name : Use Nightly package.json in Ubuntu/macOS
93
+ if : matrix.release == 'nightly' && matrix.os != 'windows-latest'
94
+ working-directory : ./examples/javascript
95
+ run : mv package.nightly.json package.json
96
+ - name : Use Nightly package.json in Windows
97
+ 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
80
100
- name : Install Requirements
81
101
working-directory : ./examples/javascript
82
102
run : npm install
103
+ env :
104
+ NODE_AUTH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
83
105
- name : Run tests
84
106
uses : nick-invision/retry@v3.0.0
85
107
with :
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' " >
13
16
<PackageReference Include =" Selenium.Support" Version =" 4.20.0-nightly202404181318" />
14
17
<PackageReference Include =" Selenium.WebDriver" Version =" 4.20.0-nightly202404181318" />
15
18
</ItemGroup >
16
19
20
+ <ItemGroup Label =" Stable" Condition =" '$(SE_RELEASE)' == 'stable' " >
21
+ <PackageReference Include =" Selenium.Support" Version =" 4.19.0" />
22
+ <PackageReference Include =" Selenium.WebDriver" Version =" 4.19.0" />
23
+ </ItemGroup >
24
+
17
25
<ItemGroup >
18
26
<Folder Include =" LocalPackages" />
19
27
</ItemGroup >
Original file line number Diff line number Diff line change
1
+ {
2
+ "name" : " javascript-examples" ,
3
+ "version" : " 1.0.0" ,
4
+ "scripts" : {
5
+ "test" : " npx mocha test/**/*.spec.js --timeout 60000"
6
+ },
7
+ "author" : " The Selenium project" ,
8
+ "license" : " Apache-2.0" ,
9
+ "dependencies" : {
10
+ "assert" : " 2.1.0" ,
11
+ "selenium-webdriver" : " npm:@seleniumhq/selenium-webdriver@4.20.0-nightly202404220008"
12
+ },
13
+ "devDependencies" : {
14
+ "mocha" : " 10.4.0"
15
+ }
16
+ }
You can’t perform that action at this time.
0 commit comments