From a60330b408f65ffc0a4c0854f513030d0dc3639b Mon Sep 17 00:00:00 2001 From: Nikhil Badyal Date: Wed, 21 Dec 2022 18:22:41 +0530 Subject: [PATCH] =?UTF-8?q?=F0=9F=91=B7=20Test=20all=20apps=20in=20PR=20ch?= =?UTF-8?q?ecks?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/pr-checks.yml | 4 ++-- src/config.py | 7 +++++-- src/utils.py | 19 +++++++++++++++++++ 3 files changed, 26 insertions(+), 4 deletions(-) diff --git a/.github/workflows/pr-checks.yml b/.github/workflows/pr-checks.yml index d1e2a48..1c27f16 100644 --- a/.github/workflows/pr-checks.yml +++ b/.github/workflows/pr-checks.yml @@ -15,7 +15,7 @@ jobs: build-apk-pr-check: uses: ./.github/workflows/build-artifact.yml with: - FILES_TO_EXPECT: 3 + FILES_TO_EXPECT: 18 secrets: ENVS: | - PATCH_APPS=youtube_music,twitter + CI_TEST=True diff --git a/src/config.py b/src/config.py index 7a89421..f6a24fc 100644 --- a/src/config.py +++ b/src/config.py @@ -5,7 +5,7 @@ from typing import Dict, List from environs import Env from requests import Session -from src.utils import default_build +from src.utils import all_builds, default_build class RevancedConfig: @@ -28,7 +28,10 @@ class RevancedConfig: self.apk_pure = ["hex-editor"] self.apk_sos = ["expensemanager"] self.keystore_name = env.str("KEYSTORE_FILE_NAME", "revanced.keystore") - self.apps = env.list("PATCH_APPS", default_build) + self.ci_test = env.bool("CI_TEST", False) + self.apps = env.list( + "PATCH_APPS", all_builds if self.ci_test else default_build + ) self.extended_apps: List[str] = ["youtube", "youtube_music"] self.rip_libs_apps: List[str] = ["youtube"] self.normal_cli_jar = "revanced-cli.jar" diff --git a/src/utils.py b/src/utils.py index 98741dc..8ddd0b6 100644 --- a/src/utils.py +++ b/src/utils.py @@ -2,7 +2,26 @@ from typing import Dict default_build = [ + "ticktick", +] +all_builds = [ "youtube", + "youtube_music", + "twitter", + "reddit", + "tiktok", + "warnwetter", + "spotify", + "nyx-music-player", + "icon_pack_studio", + "ticktick", + "twitch", + "hex-editor", + "citra", + "windy", + "my-expenses", + "backdrops", + "expensemanager", ] possible_archs = ["armeabi-v7a", "x86", "x86_64", "arm64-v8a"]