-
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.
- Loading branch information
1 parent
057dc48
commit 1377258
Showing
1 changed file
with
45 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,45 @@ | ||
name: CI | ||
|
||
# Controls when the workflow will run | ||
on: | ||
push: | ||
branches: [ "main" ] | ||
pull_request: | ||
branches: [ "main" ] | ||
workflow_dispatch: | ||
|
||
jobs: | ||
build: | ||
runs-on: android above 7.O | ||
|
||
steps: | ||
# Checks out your repository | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
|
||
# Set up JDK (Java Development Kit) | ||
- name: Set up JDK 11 | ||
uses: actions/setup-java@v2 | ||
with: | ||
java-version: '11' | ||
distribution: 'adopt' | ||
|
||
# Build the Android project | ||
- name: Build with Gradle | ||
run: ./gradlew build | ||
|
||
# Run tests | ||
- name: Run tests | ||
run: ./gradlew test | ||
|
||
# Optionally, you can run linting if you have lint set up in your Gradle files | ||
- name: Run lint | ||
run: ./gradlew lint | ||
|
||
# Optionally, you can publish the build artifacts or notify if needed | ||
# Example: Upload the APK as an artifact | ||
- name: Upload APK | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: void-malware-sandbox-apk | ||
path: app/build/outputs/apk/debug/app-debug.apk |