Skip to content

Instantly share code, notes, and snippets.

@Ahmedgadein
Created April 16, 2022 02:22
Show Gist options
  • Select an option

  • Save Ahmedgadein/9b12f348043e9f68b838b77017c9364c to your computer and use it in GitHub Desktop.

Select an option

Save Ahmedgadein/9b12f348043e9f68b838b77017c9364c to your computer and use it in GitHub Desktop.
name: Workflow
on:
pull_request:
branches:
- master
jobs:
testing:
name: Lint Check and Testing
runs-on: ubuntu-latest
steps:
- name: Clone Repo
uses: actions/checkout@v1
- name: Set up JDK 1.11
uses: actions/setup-java@v1
with:
java-version: 1.11
- name: Run Kotlin Linter
run: ./gradlew ktlintCheck
- name: Run Android Linter
run: ./gradlew lintDebug
- name: Run Unit Tests
run: ./gradlew testDebugUnitTest
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment