Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
shavinda-kandc committed Jul 27, 2023
0 parents commit 616612d
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 0 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/reusable-checks.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Reusable - Build Checks
on:
workflow_call:

env:
CI_BUILD: true

jobs:
unit-test:
name: Unit Test
runs-on: ubuntu-20.04
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- name: Checkout
uses: actions/checkout@v3

# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- name: Setup Android Runner
uses: ./.github/actions/setup-android-runner

# Gradle execution - clean and test
- name: Test
uses: gradle/gradle-build-action@v2
with:
arguments: clean testDebugUnitTest

static-checks:
name: Static Analysis
runs-on: ubuntu-20.04
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- name: Checkout
uses: actions/checkout@v3

# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- name: Setup Android Runner
uses: ./.github/actions/setup-android-runner

# Gradle execution - clean and test
- name: Lint Check
uses: gradle/gradle-build-action@v2
with:
arguments: lint
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.DS_Store
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Re-Usable workflow in external repo
A repo that contains a re-usable workflow that runs tests and lint checks

0 comments on commit 616612d

Please sign in to comment.