mirror of
https://github.com/bitwarden/android.git
synced 2024-12-03 19:54:20 +03:00
Replace Danger / Shroud with Codecov (#3363)
This commit is contained in:
parent
fc78037fb0
commit
67874655fa
6 changed files with 22 additions and 82 deletions
2
.github/workflows/build.yml
vendored
2
.github/workflows/build.yml
vendored
|
@ -75,7 +75,7 @@ jobs:
|
||||||
bundle install --jobs 4 --retry 3
|
bundle install --jobs 4 --retry 3
|
||||||
|
|
||||||
- name: Check
|
- name: Check
|
||||||
run: bundle exec fastlane test
|
run: bundle exec fastlane check
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
run: bundle exec fastlane assembleDebugApks
|
run: bundle exec fastlane assembleDebugApks
|
||||||
|
|
24
.github/workflows/test.yml
vendored
24
.github/workflows/test.yml
vendored
|
@ -68,17 +68,19 @@ jobs:
|
||||||
distribution: "temurin"
|
distribution: "temurin"
|
||||||
java-version: ${{ env.JAVA_VERSION }}
|
java-version: ${{ env.JAVA_VERSION }}
|
||||||
|
|
||||||
- name: Build and test
|
- name: Install Fastlane
|
||||||
# Run checks on standard variant only because release and beta builds are not configured to
|
|
||||||
# work properly with the Compose testing library. F-Droid related tasks are also skipped as
|
|
||||||
# there is no significant code difference between the builds.
|
|
||||||
run: |
|
run: |
|
||||||
./gradlew testStandardDebug \
|
gem install bundler:2.2.27
|
||||||
lintStandardDebug \
|
bundle config path vendor/bundle
|
||||||
detektStandardDebug \
|
bundle install --jobs 4 --retry 3
|
||||||
koverXmlReportStandardDebug
|
|
||||||
|
|
||||||
- name: Danger
|
- name: Build and test
|
||||||
|
run: |
|
||||||
|
bundle exec fastlane check
|
||||||
|
|
||||||
|
- name: Upload to codecov.io
|
||||||
|
uses: codecov/codecov-action@e28ff129e5465c2c0dcc6f003fc735cb6ae0c673 # v4.5.0
|
||||||
|
with:
|
||||||
|
file: app/build/reports/kover/reportDebug.xml
|
||||||
env:
|
env:
|
||||||
DANGER_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
|
||||||
run: bundle exec danger
|
|
||||||
|
|
2
Gemfile
2
Gemfile
|
@ -2,8 +2,6 @@ source "https://rubygems.org"
|
||||||
|
|
||||||
ruby File.read(".ruby-version").strip
|
ruby File.read(".ruby-version").strip
|
||||||
|
|
||||||
gem 'danger'
|
|
||||||
gem 'danger-shroud'
|
|
||||||
gem 'fastlane'
|
gem 'fastlane'
|
||||||
gem 'time'
|
gem 'time'
|
||||||
|
|
||||||
|
|
62
Gemfile.lock
62
Gemfile.lock
|
@ -10,17 +10,17 @@ GEM
|
||||||
artifactory (3.0.17)
|
artifactory (3.0.17)
|
||||||
atomos (0.1.3)
|
atomos (0.1.3)
|
||||||
aws-eventstream (1.3.0)
|
aws-eventstream (1.3.0)
|
||||||
aws-partitions (1.946.0)
|
aws-partitions (1.947.0)
|
||||||
aws-sdk-core (3.197.2)
|
aws-sdk-core (3.199.0)
|
||||||
aws-eventstream (~> 1, >= 1.3.0)
|
aws-eventstream (~> 1, >= 1.3.0)
|
||||||
aws-partitions (~> 1, >= 1.651.0)
|
aws-partitions (~> 1, >= 1.651.0)
|
||||||
aws-sigv4 (~> 1.8)
|
aws-sigv4 (~> 1.8)
|
||||||
jmespath (~> 1, >= 1.6.1)
|
jmespath (~> 1, >= 1.6.1)
|
||||||
aws-sdk-kms (1.85.0)
|
aws-sdk-kms (1.87.0)
|
||||||
aws-sdk-core (~> 3, >= 3.197.0)
|
aws-sdk-core (~> 3, >= 3.199.0)
|
||||||
aws-sigv4 (~> 1.1)
|
aws-sigv4 (~> 1.1)
|
||||||
aws-sdk-s3 (1.152.3)
|
aws-sdk-s3 (1.154.0)
|
||||||
aws-sdk-core (~> 3, >= 3.197.0)
|
aws-sdk-core (~> 3, >= 3.199.0)
|
||||||
aws-sdk-kms (~> 1)
|
aws-sdk-kms (~> 1)
|
||||||
aws-sigv4 (~> 1.8)
|
aws-sigv4 (~> 1.8)
|
||||||
aws-sigv4 (1.8.0)
|
aws-sigv4 (1.8.0)
|
||||||
|
@ -28,34 +28,10 @@ GEM
|
||||||
babosa (1.0.4)
|
babosa (1.0.4)
|
||||||
base64 (0.2.0)
|
base64 (0.2.0)
|
||||||
claide (1.1.0)
|
claide (1.1.0)
|
||||||
claide-plugins (0.9.2)
|
|
||||||
cork
|
|
||||||
nap
|
|
||||||
open4 (~> 1.3)
|
|
||||||
colored (1.2)
|
colored (1.2)
|
||||||
colored2 (3.1.2)
|
colored2 (3.1.2)
|
||||||
commander (4.6.0)
|
commander (4.6.0)
|
||||||
highline (~> 2.0.0)
|
highline (~> 2.0.0)
|
||||||
cork (0.3.0)
|
|
||||||
colored2 (~> 3.1)
|
|
||||||
danger (9.4.3)
|
|
||||||
claide (~> 1.0)
|
|
||||||
claide-plugins (>= 0.9.2)
|
|
||||||
colored2 (~> 3.1)
|
|
||||||
cork (~> 0.1)
|
|
||||||
faraday (>= 0.9.0, < 3.0)
|
|
||||||
faraday-http-cache (~> 2.0)
|
|
||||||
git (~> 1.13)
|
|
||||||
kramdown (~> 2.3)
|
|
||||||
kramdown-parser-gfm (~> 1.0)
|
|
||||||
no_proxy_fix
|
|
||||||
octokit (>= 4.0)
|
|
||||||
terminal-table (>= 1, < 4)
|
|
||||||
danger-plugin-api (1.0.0)
|
|
||||||
danger (> 2.0)
|
|
||||||
danger-shroud (0.0.7)
|
|
||||||
danger-plugin-api (~> 1.0)
|
|
||||||
nokogiri
|
|
||||||
date (3.3.4)
|
date (3.3.4)
|
||||||
declarative (0.0.20)
|
declarative (0.0.20)
|
||||||
digest-crc (0.6.5)
|
digest-crc (0.6.5)
|
||||||
|
@ -82,8 +58,6 @@ GEM
|
||||||
faraday-em_http (1.0.0)
|
faraday-em_http (1.0.0)
|
||||||
faraday-em_synchrony (1.0.0)
|
faraday-em_synchrony (1.0.0)
|
||||||
faraday-excon (1.1.0)
|
faraday-excon (1.1.0)
|
||||||
faraday-http-cache (2.5.1)
|
|
||||||
faraday (>= 0.8)
|
|
||||||
faraday-httpclient (1.0.1)
|
faraday-httpclient (1.0.1)
|
||||||
faraday-multipart (1.0.4)
|
faraday-multipart (1.0.4)
|
||||||
multipart-post (~> 2)
|
multipart-post (~> 2)
|
||||||
|
@ -140,9 +114,6 @@ GEM
|
||||||
google-apis-firebaseappdistribution_v1 (~> 0.3.0)
|
google-apis-firebaseappdistribution_v1 (~> 0.3.0)
|
||||||
google-apis-firebaseappdistribution_v1alpha (~> 0.2.0)
|
google-apis-firebaseappdistribution_v1alpha (~> 0.2.0)
|
||||||
gh_inspector (1.1.3)
|
gh_inspector (1.1.3)
|
||||||
git (1.19.1)
|
|
||||||
addressable (~> 2.8)
|
|
||||||
rchardet (~> 1.8)
|
|
||||||
google-apis-androidpublisher_v3 (0.54.0)
|
google-apis-androidpublisher_v3 (0.54.0)
|
||||||
google-apis-core (>= 0.11.0, < 2.a)
|
google-apis-core (>= 0.11.0, < 2.a)
|
||||||
google-apis-core (0.11.3)
|
google-apis-core (0.11.3)
|
||||||
|
@ -191,34 +162,18 @@ GEM
|
||||||
json (2.7.2)
|
json (2.7.2)
|
||||||
jwt (2.8.2)
|
jwt (2.8.2)
|
||||||
base64
|
base64
|
||||||
kramdown (2.4.0)
|
|
||||||
rexml
|
|
||||||
kramdown-parser-gfm (1.1.0)
|
|
||||||
kramdown (~> 2.0)
|
|
||||||
mini_magick (4.13.1)
|
mini_magick (4.13.1)
|
||||||
mini_mime (1.1.5)
|
mini_mime (1.1.5)
|
||||||
mini_portile2 (2.8.7)
|
|
||||||
multi_json (1.15.0)
|
multi_json (1.15.0)
|
||||||
multipart-post (2.4.1)
|
multipart-post (2.4.1)
|
||||||
nanaimo (0.3.0)
|
nanaimo (0.3.0)
|
||||||
nap (1.1.0)
|
|
||||||
naturally (2.2.1)
|
naturally (2.2.1)
|
||||||
nkf (0.2.0)
|
nkf (0.2.0)
|
||||||
no_proxy_fix (0.1.2)
|
|
||||||
nokogiri (1.16.6)
|
|
||||||
mini_portile2 (~> 2.8.2)
|
|
||||||
racc (~> 1.4)
|
|
||||||
octokit (9.1.0)
|
|
||||||
faraday (>= 1, < 3)
|
|
||||||
sawyer (~> 0.9)
|
|
||||||
open4 (1.3.4)
|
|
||||||
optparse (0.5.0)
|
optparse (0.5.0)
|
||||||
os (1.1.4)
|
os (1.1.4)
|
||||||
plist (3.7.1)
|
plist (3.7.1)
|
||||||
public_suffix (6.0.0)
|
public_suffix (6.0.0)
|
||||||
racc (1.8.0)
|
|
||||||
rake (13.2.1)
|
rake (13.2.1)
|
||||||
rchardet (1.8.0)
|
|
||||||
representable (3.2.0)
|
representable (3.2.0)
|
||||||
declarative (< 0.1.0)
|
declarative (< 0.1.0)
|
||||||
trailblazer-option (>= 0.1.1, < 0.2.0)
|
trailblazer-option (>= 0.1.1, < 0.2.0)
|
||||||
|
@ -229,9 +184,6 @@ GEM
|
||||||
rouge (2.0.7)
|
rouge (2.0.7)
|
||||||
ruby2_keywords (0.0.5)
|
ruby2_keywords (0.0.5)
|
||||||
rubyzip (2.3.2)
|
rubyzip (2.3.2)
|
||||||
sawyer (0.9.2)
|
|
||||||
addressable (>= 2.3.5)
|
|
||||||
faraday (>= 0.17.3, < 3)
|
|
||||||
security (0.1.5)
|
security (0.1.5)
|
||||||
signet (0.19.0)
|
signet (0.19.0)
|
||||||
addressable (~> 2.8)
|
addressable (~> 2.8)
|
||||||
|
@ -271,8 +223,6 @@ PLATFORMS
|
||||||
ruby
|
ruby
|
||||||
|
|
||||||
DEPENDENCIES
|
DEPENDENCIES
|
||||||
danger
|
|
||||||
danger-shroud
|
|
||||||
fastlane
|
fastlane
|
||||||
fastlane-plugin-firebase_app_distribution
|
fastlane-plugin-firebase_app_distribution
|
||||||
time
|
time
|
||||||
|
|
10
README.md
10
README.md
|
@ -210,16 +210,6 @@ The following is a list of additional third-party dependencies used as part of t
|
||||||
|
|
||||||
The following is a list of additional third-party dependencies used as part of the CI/CD workflows. These are not present in the final packaged application.
|
The following is a list of additional third-party dependencies used as part of the CI/CD workflows. These are not present in the final packaged application.
|
||||||
|
|
||||||
- **Danger**
|
|
||||||
- https://github.com/danger/danger
|
|
||||||
- Purpose: Provides a system for enforcing common Pull Request rules.
|
|
||||||
- License: MIT
|
|
||||||
|
|
||||||
- **Danger Shroud**
|
|
||||||
- https://github.com/livefront/danger-shroud
|
|
||||||
- Purpose: A Danger plugin for enforcing code coverage via Kover / Jacoco.
|
|
||||||
- License: Apache 2.0
|
|
||||||
|
|
||||||
- **Fastlane**
|
- **Fastlane**
|
||||||
- https://fastlane.tools/
|
- https://fastlane.tools/
|
||||||
- Purpose: Automates building, signing, and distributing applications.
|
- Purpose: Automates building, signing, and distributing applications.
|
||||||
|
|
|
@ -105,8 +105,8 @@ platform :android do
|
||||||
)
|
)
|
||||||
end
|
end
|
||||||
|
|
||||||
desc "Runs Standard Debug tests and generates Kover report."
|
desc "Runs Standard Debug tests and generates Kover report"
|
||||||
lane :test do
|
lane :check do
|
||||||
gradle(
|
gradle(
|
||||||
tasks: ["testStandardDebug", "lintStandardDebug", "detektStandardDebug", "koverXmlReportStandardDebug"]
|
tasks: ["testStandardDebug", "lintStandardDebug", "detektStandardDebug", "koverXmlReportStandardDebug"]
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in a new issue