-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #17 from ThePalaceProject/refactoring
Refactoring ios
- Loading branch information
Showing
68 changed files
with
359 additions
and
408 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,78 @@ | ||
# This workflow uses actions that are not certified by GitHub. | ||
# They are provided by a third-party and are governed by | ||
# separate terms of service, privacy policy, and support | ||
# documentation. | ||
|
||
# This workflow helps you trigger a SonarQube analysis of your code and populates | ||
# GitHub Code Scanning alerts with the vulnerabilities found. | ||
# (this feature is available starting from SonarQube 9.7, Developer Edition and above) | ||
|
||
# 1. Make sure you add a valid GitHub configuration to your SonarQube (Administration > DevOps platforms > GitHub) | ||
|
||
# 2. Import your project on SonarQube | ||
# * Add your repository as a new project by clicking "Create project" from your homepage. | ||
# | ||
# 3. Select GitHub Actions as your CI and follow the tutorial | ||
# * a. Generate a new token and add it to your GitHub repository's secrets using the name SONAR_TOKEN | ||
# (On SonarQube, click on your avatar on top-right > My account > Security or ask your administrator) | ||
# | ||
# * b. Copy/paste your SonarQube host URL to your GitHub repository's secrets using the name SONAR_HOST_URL | ||
# | ||
# * c. Copy/paste the project Key into the args parameter below | ||
# (You'll find this information in SonarQube by following the tutorial or by clicking on Project Information at the top-right of your project's homepage) | ||
|
||
# Feel free to take a look at our documentation (https://docs.sonarqube.org/latest/analysis/github-integration/) | ||
# or reach out to our community forum if you need some help (https://community.sonarsource.com/c/sq/10) | ||
|
||
name: SonarQube analysis | ||
|
||
on: | ||
push: | ||
branches: [ "main" ] | ||
pull_request: | ||
branches: [ "main" ] | ||
workflow_dispatch: | ||
|
||
permissions: | ||
pull-requests: read # allows SonarQube to decorate PRs with analysis results | ||
|
||
jobs: | ||
Analysis: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
|
||
- uses: actions/checkout@v3 | ||
env: | ||
EXCLUDE_PATH: palace/.git | ||
- name: Set up JDK 11 | ||
uses: actions/setup-java@v1 | ||
with: | ||
java-version: 11 | ||
- name: Cache SonarQube packages | ||
uses: actions/cache@v1 | ||
with: | ||
path: ~/.sonar/cache | ||
key: ${{ runner.os }}-sonar | ||
restore-keys: ${{ runner.os }}-sonar | ||
- name: Cache Maven packages | ||
uses: actions/cache@v1 | ||
with: | ||
path: ~/.m2 | ||
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }} | ||
restore-keys: ${{ runner.os }}-m2 | ||
|
||
- name: Install SonarQube Scanner | ||
run: | | ||
curl -L https://binaries.sonarsource.com/Distribution/sonar-scanner-cli/sonar-scanner-cli-4.6.2.2472-linux.zip -o sonar-scanner.zip | ||
unzip sonar-scanner.zip | ||
rm sonar-scanner.zip | ||
mv sonar-scanner-* sonar-scanner | ||
sudo mv sonar-scanner /opt/ | ||
sudo ln -s /opt/sonar-scanner/bin/sonar-scanner /usr/local/bin/sonar-scanner | ||
- name: Run SonarQube analysis | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any | ||
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} | ||
SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }} | ||
run: sonar-scanner -Dsonar.projectKey=Mobile_tests -Dsonar.projectName='MobileTests' -Dsonar.sources='src' -Dsonar.language='java' -Dsonar.java.binaries='src' -Dsonar.java.test.binaries='src' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,10 @@ | ||
package constants.appattributes; | ||
|
||
import lombok.experimental.UtilityClass; | ||
|
||
@UtilityClass | ||
public class AndroidAttributes { | ||
public static final String CONTENT_DESC = "content-desc"; | ||
public static final String TEXT = "text"; | ||
public static final String SELECTED = "selected"; | ||
public static final String CHECKED = "checked"; | ||
|
||
private AndroidAttributes() { } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,9 @@ | ||
package constants.appattributes; | ||
|
||
import lombok.experimental.UtilityClass; | ||
|
||
@UtilityClass | ||
public class IosAttributes { | ||
public static final String NAME = "name"; | ||
public static final String VALUE = "value"; | ||
public static final String VISIBLE = "visible"; | ||
|
||
private IosAttributes() {} | ||
} |
4 changes: 3 additions & 1 deletion
4
...ts/keysForContext/ScenarioContextKey.java → ...ts/keysforcontext/ScenarioContextKey.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,8 @@ | ||
package constants.keysForContext; | ||
package constants.keysforcontext; | ||
|
||
public class ScenarioContextKey { | ||
public static final String SCENARIO_KEY = "SCENARIO"; | ||
public static final String LIST_OF_CREDENTIALS_KEY = "CREDENTIALS"; | ||
|
||
private ScenarioContextKey() { } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.