govuk_test 4.0.1 → 4.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/pull_request_template.md +3 -0
- data/.github/workflows/autorelease.yml +10 -0
- data/.github/workflows/ci.yml +11 -2
- data/.gitignore +3 -0
- data/.govuk_dependabot_merger.yml +4 -0
- data/.ruby-version +1 -1
- data/CHANGELOG.md +8 -0
- data/govuk_test.gemspec +3 -2
- data/lib/govuk_test/version.rb +1 -1
- data/lib/govuk_test.rb +1 -1
- metadata +23 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 72af22d7a2437e2efa73bb922dd25cf4c958e372bf26d26341277b2958914a12
|
4
|
+
data.tar.gz: be344f86816c19db0715d7490aa9b76f2ae18711fbf9bf055cfec6a5bd92522d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b6ef27cb255d0d9f63955a34e36782a21ffca5eb624b403ab59fe2465a259fda43d6f9bc05627f6cd8b98910e6dd1db961ab8438d0add1057c4afabf034b1a22
|
7
|
+
data.tar.gz: 29cca0af4cf9dbf07f521996956e8a99c3e903a1c590aa81d8a6628e5845caf50aca86238e18be99b093088fd1754f1b0ca51b41ca8a84bc1ff5c42a538452b5
|
@@ -0,0 +1,3 @@
|
|
1
|
+
⚠️ Make sure you [release a new version of this gem](https://github.com/alphagov/govuk_test/pull/65/files) after merging your changes. ⚠️
|
2
|
+
|
3
|
+
Refer to the [existing docs](https://docs.publishing.service.gov.uk/manual/publishing-a-ruby-gem.html#ruby-version-compatibility) if you are making changes to the supported Ruby versions.
|
@@ -0,0 +1,10 @@
|
|
1
|
+
on:
|
2
|
+
workflow_dispatch: {}
|
3
|
+
schedule:
|
4
|
+
- cron: '30 10 * * 1-5' # 10:30am UTC, Mon-Fri.
|
5
|
+
|
6
|
+
jobs:
|
7
|
+
autorelease:
|
8
|
+
uses: alphagov/govuk-infrastructure/.github/workflows/autorelease-rubygem.yml@main
|
9
|
+
secrets:
|
10
|
+
GH_TOKEN: ${{ secrets.GOVUK_CI_GITHUB_API_TOKEN }}
|
data/.github/workflows/ci.yml
CHANGED
@@ -1,13 +1,22 @@
|
|
1
1
|
on: [push, pull_request]
|
2
2
|
|
3
3
|
jobs:
|
4
|
+
codeql-sast:
|
5
|
+
name: CodeQL SAST scan
|
6
|
+
uses: alphagov/govuk-infrastructure/.github/workflows/codeql-analysis.yml@main
|
7
|
+
permissions:
|
8
|
+
security-events: write
|
9
|
+
|
10
|
+
dependency-review:
|
11
|
+
name: Dependency Review scan
|
12
|
+
uses: alphagov/govuk-infrastructure/.github/workflows/dependency-review.yml@main
|
13
|
+
|
4
14
|
# This matrix job runs the test suite against multiple Ruby versions
|
5
15
|
test_matrix:
|
6
16
|
strategy:
|
7
17
|
fail-fast: false
|
8
18
|
matrix:
|
9
|
-
|
10
|
-
ruby: ['3.0', 3.1, 3.2]
|
19
|
+
ruby: [3.1, 3.2]
|
11
20
|
runs-on: ubuntu-latest
|
12
21
|
steps:
|
13
22
|
- uses: actions/checkout@v4
|
data/.gitignore
CHANGED
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.
|
1
|
+
3.1.5
|
data/CHANGELOG.md
CHANGED
@@ -7,6 +7,14 @@
|
|
7
7
|
useful summary for people upgrading their application, not a replication
|
8
8
|
of the commit log.
|
9
9
|
|
10
|
+
## 4.1.0
|
11
|
+
|
12
|
+
* Drop support for Ruby 3.0
|
13
|
+
|
14
|
+
## 4.0.2
|
15
|
+
|
16
|
+
* Use `--headless=new` option for Chrome webdriver to work with the new version of Chrome (versions post 120)
|
17
|
+
|
10
18
|
## 4.0.1
|
11
19
|
|
12
20
|
* Use `options` instead of `capabilities` in `Capybara::Selenium::Driver#initialize`. The use of `capabilities` was deprecated in selenium 4.8.0 and was removed in selenium 4.12.0.
|
data/govuk_test.gemspec
CHANGED
@@ -13,7 +13,7 @@ Gem::Specification.new do |spec|
|
|
13
13
|
spec.homepage = "https://github.com/alphagov/govuk_test"
|
14
14
|
spec.license = "MIT"
|
15
15
|
|
16
|
-
spec.required_ruby_version = ">= 3.
|
16
|
+
spec.required_ruby_version = ">= 3.1"
|
17
17
|
|
18
18
|
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features|bin)/}) }
|
19
19
|
spec.bindir = "exe"
|
@@ -29,5 +29,6 @@ Gem::Specification.new do |spec|
|
|
29
29
|
spec.add_development_dependency "climate_control"
|
30
30
|
spec.add_development_dependency "rake"
|
31
31
|
spec.add_development_dependency "rspec"
|
32
|
-
spec.add_development_dependency "rubocop-govuk", "4.
|
32
|
+
spec.add_development_dependency "rubocop-govuk", "4.17.1"
|
33
|
+
spec.add_development_dependency "simplecov"
|
33
34
|
end
|
data/lib/govuk_test/version.rb
CHANGED
data/lib/govuk_test.rb
CHANGED
@@ -18,7 +18,7 @@ module GovukTest
|
|
18
18
|
|
19
19
|
def self.headless_chrome_selenium_options
|
20
20
|
Selenium::WebDriver::Chrome::Options.new.tap do |options|
|
21
|
-
options.add_argument("--headless")
|
21
|
+
options.add_argument("--headless=new")
|
22
22
|
options.add_argument("--no-sandbox") if ENV["GOVUK_TEST_CHROME_NO_SANDBOX"]
|
23
23
|
end
|
24
24
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: govuk_test
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.0
|
4
|
+
version: 4.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- GOV.UK Dev
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-06-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: brakeman
|
@@ -128,14 +128,28 @@ dependencies:
|
|
128
128
|
requirements:
|
129
129
|
- - '='
|
130
130
|
- !ruby/object:Gem::Version
|
131
|
-
version: 4.
|
131
|
+
version: 4.17.1
|
132
132
|
type: :development
|
133
133
|
prerelease: false
|
134
134
|
version_requirements: !ruby/object:Gem::Requirement
|
135
135
|
requirements:
|
136
136
|
- - '='
|
137
137
|
- !ruby/object:Gem::Version
|
138
|
-
version: 4.
|
138
|
+
version: 4.17.1
|
139
|
+
- !ruby/object:Gem::Dependency
|
140
|
+
name: simplecov
|
141
|
+
requirement: !ruby/object:Gem::Requirement
|
142
|
+
requirements:
|
143
|
+
- - ">="
|
144
|
+
- !ruby/object:Gem::Version
|
145
|
+
version: '0'
|
146
|
+
type: :development
|
147
|
+
prerelease: false
|
148
|
+
version_requirements: !ruby/object:Gem::Requirement
|
149
|
+
requirements:
|
150
|
+
- - ">="
|
151
|
+
- !ruby/object:Gem::Version
|
152
|
+
version: '0'
|
139
153
|
description: Test configuration and dependencies for applications on GOV.UK
|
140
154
|
email:
|
141
155
|
- govuk-dev@digital.cabinet-office.gov.uk
|
@@ -144,8 +158,11 @@ extensions: []
|
|
144
158
|
extra_rdoc_files: []
|
145
159
|
files:
|
146
160
|
- ".github/dependabot.yml"
|
161
|
+
- ".github/pull_request_template.md"
|
162
|
+
- ".github/workflows/autorelease.yml"
|
147
163
|
- ".github/workflows/ci.yml"
|
148
164
|
- ".gitignore"
|
165
|
+
- ".govuk_dependabot_merger.yml"
|
149
166
|
- ".rspec"
|
150
167
|
- ".rubocop.yml"
|
151
168
|
- ".ruby-version"
|
@@ -169,14 +186,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
169
186
|
requirements:
|
170
187
|
- - ">="
|
171
188
|
- !ruby/object:Gem::Version
|
172
|
-
version: '3.
|
189
|
+
version: '3.1'
|
173
190
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
174
191
|
requirements:
|
175
192
|
- - ">="
|
176
193
|
- !ruby/object:Gem::Version
|
177
194
|
version: '0'
|
178
195
|
requirements: []
|
179
|
-
rubygems_version: 3.
|
196
|
+
rubygems_version: 3.5.11
|
180
197
|
signing_key:
|
181
198
|
specification_version: 4
|
182
199
|
summary: Test setup for GOV.UK
|