Skip to content

Commit

Permalink
-CICD Init (#571)
Browse files Browse the repository at this point in the history
  • Loading branch information
KhubaibKhan4 committed Jul 20, 2024
1 parent ce9a165 commit cb67ccd
Show file tree
Hide file tree
Showing 2 changed files with 60 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/test_app.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
#.github/workflows/basic.yaml
name: task - validate commit on master
on:
push:
branches: [ master ]

jobs:
basic_job:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write

steps:
- name: Setup actions.
uses: actions/checkout@v2

- name: set up JDK 11
uses: actions/setup-java@v2
with:
java-version: '11'
distribution: 'temurin'
cache: gradle

- name: Generate AAR and APK files
if: always()
run: ./gradlew assembleDebug

- name: Upload AAR files
if: always()
uses: actions/upload-artifact@v2
with:
name: artifacts.zip
path: |
app/build/outputs/apk/debug/app-debug.apk
dog_network/build/outputs/aar
24 changes: 24 additions & 0 deletions .github/workflows/test_cmp_app.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: CI CD Pipelines
on:
push:
branches: ["master"]
pull_request:
branches: ["master"]

workflow_dispatch:

jobs:
demo_job:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3

- name: Display Hello Text
run: echo Hello World

- name: Run Test
run: |
echo Running Unit Tests
echo Running Ui Tests
echo Test Completed

0 comments on commit cb67ccd

Please sign in to comment.