-
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.
Migratedgit push --force origin mastergit push --force origin master
- Loading branch information
Javier Manrique
committed
Oct 26, 2024
0 parents
commit 53f0449
Showing
364 changed files
with
13,172 additions
and
0 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,32 @@ | ||
name: Code coverage check | ||
|
||
on: | ||
workflow_dispatch: | ||
pull_request: | ||
|
||
jobs: | ||
run-code-coverage-check: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: write | ||
pull-requests: write | ||
|
||
steps: | ||
- name: Check out code | ||
uses: actions/checkout@v3 | ||
|
||
- name: Set up JDK 17 | ||
uses: actions/setup-java@v3 | ||
with: | ||
java-version: '17' | ||
distribution: 'temurin' | ||
|
||
- name: Build and test with Gradle | ||
run: ./gradlew clean generateJacocoCoverageReport | ||
|
||
- name: Upload JaCoCo report | ||
if: success() | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: jacoco-report | ||
path: build/reports/jacoco/jacoco/html |
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,77 @@ | ||
name: Generate reference test screenshots | ||
|
||
on: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
generate-reference-test-screenshots: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
api-level: [ 29 ] | ||
permissions: | ||
contents: write | ||
pull-requests: write | ||
|
||
steps: | ||
- name: Check out code | ||
uses: actions/checkout@v3 | ||
|
||
- name: Set up JDK 17 | ||
uses: actions/setup-java@v3 | ||
with: | ||
java-version: '17' | ||
distribution: 'temurin' | ||
cache: 'gradle' | ||
|
||
- name: Setup Android SDK | ||
uses: android-actions/setup-android@v3 | ||
|
||
- name: Enable KVM | ||
run: | | ||
echo 'KERNEL=="kvm", GROUP="kvm", MODE="0666", OPTIONS+="static_node=kvm"' | sudo tee /etc/udev/rules.d/99-kvm4all.rules | ||
sudo udevadm control --reload-rules | ||
sudo udevadm trigger --name-match=kvm | ||
- name: Generate AVD snapshot for caching | ||
if: steps.avd-cache.outputs.cache-hit != 'true' | ||
uses: reactivecircus/android-emulator-runner@v2 | ||
with: | ||
api-level: ${{ matrix.api-level }} | ||
force-avd-creation: false | ||
emulator-options: -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none | ||
disable-animations: true | ||
script: echo "Generated AVD snapshot for caching." | ||
|
||
- name: Generate screenshots | ||
uses: reactivecircus/android-emulator-runner@v2 | ||
with: | ||
api-level: ${{ matrix.api-level }} | ||
force-avd-creation: false | ||
emulator-options: -no-snapshot-save -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none | ||
disable-animations: true | ||
script: ./gradlew executeScreenshotTests -Precord | ||
|
||
- name: Upload instrumental report | ||
if: failure() | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: instrumental-report | ||
path: app/build/reports/androidTests/connected/debug | ||
|
||
- name: Commit screenshots | ||
run: | | ||
git config --global user.email "${{ secrets.GIT_EMAIL }}" | ||
git config --global user.name "${{ secrets.GIT_NAME }}" | ||
git add app/screenshots/ | ||
git commit -m "Add generated screenshots" | ||
- name: Push screenshots | ||
uses: ad-m/github-push-action@master | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
branch: ${{ github.ref }} | ||
|
||
- name: Cleanup | ||
if: always() | ||
run: ./gradlew clean |
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,30 @@ | ||
name: Sanity check | ||
|
||
on: | ||
workflow_dispatch: | ||
pull_request: | ||
push: | ||
|
||
jobs: | ||
run-sanity-check: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: write | ||
pull-requests: write | ||
|
||
steps: | ||
- name: Check out code | ||
uses: actions/checkout@v3 | ||
|
||
- name: Set up JDK 17 | ||
uses: actions/setup-java@v3 | ||
with: | ||
java-version: '17' | ||
distribution: 'temurin' | ||
|
||
- name: Run detekt | ||
run: ./gradlew detekt | ||
|
||
- name: Cleanup | ||
if: always() | ||
run: ./gradlew clean |
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,72 @@ | ||
name: Screenshot tests | ||
|
||
on: | ||
workflow_dispatch: | ||
pull_request: | ||
|
||
jobs: | ||
execute-screenshot-tests: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
api-level: [ 29 ] | ||
permissions: | ||
contents: write | ||
pull-requests: write | ||
|
||
steps: | ||
- name: Check out code | ||
uses: actions/checkout@v3 | ||
|
||
- name: Set up JDK 17 | ||
uses: actions/setup-java@v3 | ||
with: | ||
java-version: '17' | ||
distribution: 'temurin' | ||
cache: 'gradle' | ||
|
||
- name: Setup Android SDK | ||
uses: android-actions/setup-android@v3 | ||
|
||
- name: Enable KVM | ||
run: | | ||
echo 'KERNEL=="kvm", GROUP="kvm", MODE="0666", OPTIONS+="static_node=kvm"' | sudo tee /etc/udev/rules.d/99-kvm4all.rules | ||
sudo udevadm control --reload-rules | ||
sudo udevadm trigger --name-match=kvm | ||
- name: Generate AVD snapshot for caching | ||
if: steps.avd-cache.outputs.cache-hit != 'true' | ||
uses: reactivecircus/android-emulator-runner@v2 | ||
with: | ||
api-level: ${{ matrix.api-level }} | ||
force-avd-creation: false | ||
emulator-options: -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none | ||
disable-animations: false | ||
script: echo "Generated AVD snapshot for caching." | ||
|
||
- name: Execute screenshot tests | ||
uses: reactivecircus/android-emulator-runner@v2 | ||
with: | ||
api-level: ${{ matrix.api-level }} | ||
force-avd-creation: false | ||
emulator-options: -no-snapshot-save -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none | ||
disable-animations: true | ||
script: ./gradlew executeScreenshotTests -Precord | ||
|
||
- name: Upload instrumental report | ||
if: failure() | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: instrumental-report | ||
path: app/build/reports/androidTests/connected/debug | ||
|
||
- name: Upload shot report | ||
if: always() | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: shot-report | ||
path: app/build/reports/shot | ||
|
||
- name: Cleanup | ||
if: always() | ||
run: ./gradlew clean |
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,36 @@ | ||
name: Unit tests | ||
|
||
on: | ||
workflow_dispatch: | ||
pull_request: | ||
|
||
jobs: | ||
execute-unit-tests: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: write | ||
pull-requests: write | ||
|
||
steps: | ||
- name: Check out code | ||
uses: actions/checkout@v3 | ||
|
||
- name: Set up JDK 17 | ||
uses: actions/setup-java@v3 | ||
with: | ||
java-version: '17' | ||
distribution: 'temurin' | ||
|
||
- name: Run unit tests | ||
run: ./gradlew test aggregateTestReport | ||
|
||
- name: Upload unit tests report | ||
if: always() | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: unit-tests-report | ||
path: build/reports/tests/aggregate | ||
|
||
- name: Cleanup | ||
if: always() | ||
run: ./gradlew clean |
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,69 @@ | ||
# Android-specific files | ||
.gradle/* | ||
/local.properties | ||
/.idea/workspace.xml | ||
/.idea/tasks.xml | ||
/.idea/gradle.xml | ||
/.idea/assetWizardSettings.xml | ||
/.idea/dictionaries | ||
/.idea/libraries | ||
/.idea/caches | ||
|
||
# Android Studio | ||
/.idea/*.iml | ||
/.idea/modules.xml | ||
/.idea/misc.xml | ||
/.idea/vcs.xml | ||
.idea/codeStyles/ | ||
.idea/runConfigurations/ | ||
|
||
# External native build folder generated in Android Studio 2.2 and later | ||
/cmake-build/ | ||
|
||
# NDK configuration file generated by Android Studio | ||
/ndk.json | ||
|
||
# User-specific files | ||
/captures/ | ||
|
||
# Compiled .class files | ||
*.class | ||
|
||
# Compiled .dex files | ||
*.dex | ||
|
||
# Proguard folder generated by Android Studio | ||
/proguard/ | ||
|
||
# Gradle files | ||
.build-cache/* | ||
|
||
# Local configuration file (sdk path, etc) | ||
local.properties | ||
|
||
# Windows thumbnail db | ||
Thumbs.db | ||
|
||
# OSX files | ||
.DS_Store | ||
|
||
# Android Studio Navigation editor temp files | ||
.navigation/ | ||
|
||
# Android Studio Virtual Device files | ||
.avd/ | ||
|
||
# Android Studio coverage output | ||
.ec/ | ||
|
||
# Intellij | ||
.idea | ||
|
||
# Keystore files | ||
*.jks | ||
|
||
# Module builds | ||
**/build/ | ||
|
||
# Local properties | ||
*local.properties |
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 @@ | ||
Import this file to create an exam: [solar-system-exam(right-format).xlsx](https://github.com/JavierManriqueCW/examinr/files/13759825/solar-system-exam.right-format.xlsx) |
Oops, something went wrong.