Skip to content

Commit

Permalink
Migratedgit push --force origin mastergit push --force origin master
Browse files Browse the repository at this point in the history
  • Loading branch information
Javier Manrique committed Oct 26, 2024
0 parents commit 53f0449
Show file tree
Hide file tree
Showing 364 changed files with 13,172 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/code-coverage-check.yml
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
77 changes: 77 additions & 0 deletions .github/workflows/generate-reference-test-screenshots.yml
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
30 changes: 30 additions & 0 deletions .github/workflows/sanity-check.yml
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
72 changes: 72 additions & 0 deletions .github/workflows/screenshot-tests.yml
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
36 changes: 36 additions & 0 deletions .github/workflows/unit-tests.yml
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
69 changes: 69 additions & 0 deletions .gitignore
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
1 change: 1 addition & 0 deletions README.md
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)
Loading

0 comments on commit 53f0449

Please sign in to comment.