mattermost-mobile/scripts
Rahim Rahman abb526cf83
ci(MM-63199): code coverage tracking (#8642)
* ci(MM-63199): code coverage tracking

* try to download existing coverage file

* read coverage

* add token

* use github.token instead

* passing github token

* github_token passing from workflow

* remove download

* re-add download

* wrong param

* try download all artifacts

* add run-id so to retrieve with download later

* remove read coverage temp

* use run-id to download

* put files into current-coverage

* using last run id

* temporary comment

* can retrieve last run id?

* remove hard-coding

* echo into github_env vs export

* comparing new and old

* comparison improvement

* post to github

* fix coverage text

* refactor to main from current-coverage

* formatting changes

* fix missing content

* small tweaking

* showing the Warning to make sure

* formatting

* remove +

* checking to see if the error shows via echo

* revert the change to error

* separate to a new file

* comment the actual test for now

* prep node deps

* only run certain things on main

* trying cache-hit

* real trying cache-hit

* testing to make sure cache-run-id runs

* save-always true

* save-always deprecated

* let's try different strategy

* add key

* restore-key adding a -

* only perform on `main`

* only run on main or if its a PR

* coverage_threshold

* remove comments

* add total

* removing unneeded comments

* calculate total

* run test in `release-*` only

* making sure that only PR will run

* only do more steps if upload-coverage successful

* trying thollander/actions-comment-pull-request

* using diff way to comment.

* comment on how things work

* testing to trigger warning and see if comment is updated vs new comment

* omit echo messages

* see if giving github token would work.

* wrong use of param

* try without github token

* adding a very simple change to see where it lands

* using cache hit instead.

* creating the cache again.  how did i lose it?

* revert back

* cache-hit might be off

* debug

* debug with failing cache restoration

* check for run-id.txt instead

* all into action

* missing "

* remove unneeded actions
* change threshold to 0.5

* relative time

* skeptical about date formatting

* revert back to the threshold trigger

* below 80% total coverage threshold

* only show one error/warning at  time.

* testing if the coverage drop below 80

* debug output

* add Reset Test Coverage label use

* try using contains vs direct comparsion

* remove the label checker

* temp change

* ooops

* revert back

* let's post before exiting

* consistency

* total coverage threshold reset to 80%
2025-03-14 13:21:25 -06:00
..
precommit CLD-7307 Add set -e to i18n checker script (#7857) 2024-03-20 15:33:06 +01:00
build.sh Upgrade RN as well as update or replace other dependencies (#8011) 2024-06-19 09:33:45 +08:00
bump.sh Add Amy as a reviewer for the weekly build number bump PRs (#8071) 2024-07-09 20:02:56 +02:00
clean.sh [Gekidou] compass icons (#5940) 2022-02-08 16:16:30 -03:00
compare-coverage.sh ci(MM-63199): code coverage tracking (#8642) 2025-03-14 13:21:25 -06:00
generate-assets.js Barebones code for v2 2020-11-17 14:20:58 -03:00
get_latest_build_number.sh CLD-6707 Automate weekly build (#7685) 2023-12-11 17:57:29 +01:00
mitmdump-flow-parsing.py test: mitmproxy + low bandwidth + automated QA using detox (#8202) 2024-10-14 07:56:52 -06:00
postinstall.sh fix(MM-62375): OutOfMemoryError issue with better catching (#8622) 2025-02-28 10:16:55 -07:00
pre-commit.sh [Gekidou] iOS Share extension (#6432) 2022-07-27 10:31:45 -04:00
preinstall.sh Update dependencies and upgrade to RN 0.76.5 (#8421) 2025-01-16 07:11:32 -07:00
read-coverage.sh ci(MM-63199): code coverage tracking (#8642) 2025-03-14 13:21:25 -06:00