Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: Create master_branch.yml #42

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
53 changes: 53 additions & 0 deletions .github/workflows/master_branch.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
name: Workflow for master branche

on:
pull_request:
push:
branches:
- 'master'

jobs:
build:
name: Build APK
runs-on: ubuntu-latest
steps:
- name: Checking out repository
uses: actions/checkout@v4

# Set up JDK
- name: Set Up JDK 11
uses: actions/setup-java@v1
with:
java-version: 11

# Install NDK
- name: Install NDK
run: echo "y" | sudo ${ANDROID_HOME}/tools/bin/sdkmanager --install "ndk;20.0.5594570" --sdk_root=${ANDROID_SDK_ROOT}

# Update Gradle Permission
- name: Change gradlew Permission
run: chmod +x gradlew

# Build App
- name: Build with Gradle
run: ./gradlew assemble

lintCheck:
name: Static Analysis
runs-on: ubuntu-latest
steps:
- name: Checking out repository
uses: actions/checkout@v4

- name: Static Analysis
run: ./gradlew lint

pmd:
name: PMD
runs-on: ubuntu-latest
steps:
- name: Checking out repository
uses: actions/checkout@v4

- name: PMD Check
run: ./gradlew pmd
Loading