-
Notifications
You must be signed in to change notification settings - Fork 12
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
Showing
6 changed files
with
164 additions
and
0 deletions.
There are no files selected for viewing
Validating CODEOWNERS rules …
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,16 @@ | ||
# Lines starting with '#' are comments. | ||
# Each line is a file pattern followed by one or more owners. | ||
|
||
# More details are here: https://help.github.com/articles/about-codeowners/ | ||
|
||
# The '*' pattern is global owners. | ||
# Not adding in this PR, but I'd like to try adding a global owner set with the entire team. | ||
# One interpretation of their docs is that global owners are added only if not removed | ||
# by a more local rule. | ||
|
||
# Order is important. The last matching pattern has the most precedence. | ||
# The folders are ordered as follows: | ||
|
||
# In each subsection folders are ordered first by depth, then alphabetically. | ||
# This should make it easy to add new rules without breaking existing ones. | ||
* @skydoves |
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,2 @@ | ||
github: skydoves | ||
custom: ["https://www.paypal.me/skydoves", "https://www.buymeacoffee.com/skydoves"] |
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,13 @@ | ||
# To get started with Dependabot version updates, you'll need to specify which | ||
# package ecosystems to update and where the package manifests are located. | ||
# Please see the documentation for all configuration options: | ||
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates | ||
|
||
version: 2 | ||
updates: | ||
- package-ecosystem: "gradle" # See documentation for possible values | ||
directory: "/" # Location of package manifests | ||
schedule: | ||
interval: "daily" | ||
# Allow up to 10 open pull requests for pip dependencies | ||
open-pull-requests-limit: 10 |
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,17 @@ | ||
### 🎯 Goal | ||
Describe the big picture of your changes here to communicate to the maintainers why we should accept this pull request. If it fixes a bug or resolves a feature request, be sure to link to that issue. | ||
|
||
### 🛠 Implementation details | ||
Describe the implementation details for this Pull Request. | ||
|
||
### ✍️ Explain examples | ||
Explain examples with code for this updates. | ||
|
||
### Preparing a pull request for review | ||
Ensure your change is properly formatted by running: | ||
|
||
```gradle | ||
$ ./gradlew spotlessApply | ||
``` | ||
|
||
Please correct any failures before requesting a review. |
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,41 @@ | ||
name: Android CI | ||
|
||
on: | ||
push: | ||
branches: [ main ] | ||
pull_request: | ||
branches: [ main ] | ||
|
||
jobs: | ||
lint: | ||
name: Spotless check | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check out code | ||
uses: actions/[email protected] | ||
- name: Set up JDK | ||
uses: actions/[email protected] | ||
with: | ||
distribution: adopt | ||
java-version: 17 | ||
- name: spotless | ||
run: ./gradlew spotlessCheck | ||
|
||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: set up JDK | ||
uses: actions/setup-java@v3 | ||
with: | ||
distribution: zulu | ||
java-version: 17 | ||
|
||
- uses: gradle/[email protected] | ||
- name: Make Gradle executable | ||
run: chmod +x ./gradlew | ||
|
||
- name: Build with Gradle | ||
run: | | ||
./gradlew --scan --stacktrace \ | ||
:app:assembleDebug |
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,75 @@ | ||
# Workflow name | ||
name: baseline-profiles | ||
|
||
# Workflow title | ||
run-name: ${{ github.actor }} requested a workflow | ||
|
||
# This should be a manual trigger so this actions gets executed every time make a new pull request. | ||
# Change this event to what suits your project best. | ||
# Read more at https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows | ||
on: | ||
workflow_dispatch: | ||
|
||
# Environment variables (Optional) | ||
# Small projects might have signingConfigs locally. This could lead to failures on GitHub Actions. | ||
# If that's the case, upload your properties defined locally to GitHub Secrets. | ||
|
||
# On your signingConfigs, you can recover GitHub Secrets using: variable = System.getenv("VARIABLE") | ||
|
||
# Then uncomment this block properly defining your uploaded variables | ||
# env: | ||
# VARIABLE: ${{ secrets.VARIABLE }} | ||
|
||
# Read more at https://docs.github.com/en/actions/security-guides/encrypted-secrets | ||
|
||
# Jobs to executed on GitHub machines | ||
jobs: | ||
|
||
# Job name | ||
generate-baseline-profiles: | ||
|
||
# Operating system where the job gets to be executed | ||
runs-on: macos-latest | ||
|
||
# Job steps | ||
steps: | ||
|
||
# Checks your code out on the machine | ||
- uses: actions/checkout@v3 | ||
|
||
# Sets java up | ||
- uses: actions/setup-java@v3 | ||
with: | ||
distribution: temurin | ||
java-version: 17 | ||
|
||
# Sets gradle up | ||
- name: Setup Gradle | ||
uses: gradle/gradle-build-action@v2 | ||
|
||
# Grants execute permission to gradle (safety step) | ||
- name: Grant Permissions to gradlew | ||
run: chmod +x gradlew | ||
|
||
# This allows us to build most of what we need without the emulator running | ||
# and using resources | ||
- name: Build app and benchmark | ||
run: ./gradlew :app:assembleBenchmark | ||
|
||
# Cleans managed device if previously settle and space currently is not available | ||
- name: Clean Managed Devices | ||
run: ./gradlew cleanManagedDevices --unused-only | ||
|
||
# Generates Baseline Profile | ||
- name: Generate Baseline Profile | ||
run: ./gradlew generateBaselineProfile -Pandroid.testoptions.manageddevices.emulator.gpu="swiftshader_indirect" -Pandroid.testInstrumentationRunnerArguments.androidx.benchmark.enabledRules=BaselineProfile -Pandroid.experimental.testOptions.managedDevices.setupTimeoutMinutes=20 -Dorg.gradle.workers.max=4 | ||
|
||
# Create Pull Request | ||
- name: Create Pull Request | ||
uses: peter-evans/create-pull-request@v5 | ||
with: | ||
commit-message: "Generate baseline profiles" | ||
title: "Generate baseline profiles" | ||
delete-branch: true | ||
reviewers: skydoves | ||
branch: actions/baseline-profiles |