Skip to content

Commit

Permalink
Update Github Action
Browse files Browse the repository at this point in the history
  • Loading branch information
hoaibn-0332 committed Aug 5, 2021
1 parent d003db6 commit 6892721
Showing 1 changed file with 31 additions and 18 deletions.
49 changes: 31 additions & 18 deletions .github/workflows/master-release-ci.yml
Original file line number Diff line number Diff line change
@@ -1,37 +1,50 @@
name: Master Release CI
# This is a basic workflow to help you get started with Actions

name: CI

# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events but only for the androidx branch
push:
branches: [ androidx ]
pull_request:
branches:
- androidx
branches: [ androidx ]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
lint_test:
name: Clean & Run UT
# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
runs-on: ubuntu-latest

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2
- uses: actions/setup-java@v1
with:
java-version: '13.x'

# Check code convention
- name: Check code convention
run: ./gradlew ktlint

# Run unit test
- name: Run UT
run: ./gradlew fullCoverageReport

-name: Upload coverage report
# Upload coverage to codec
- name: Upload coverage report
run: bash <(curl -s --retry 10 https://codecov.io/bash) -f "presentation/build/reports/jacoco/fullCoverageReport/fullCoverageReport.xml"

# Build debug
- name: Build debug
command: ./gradlew :presentation:assembleDevelopDebug

- name: upload artifact to Firebase App Distribution
uses: wzieba/[email protected]
with:
appId: ${{ secrets.FIREBASE_APP_ID }}
token: ${{ secrets.FIREBASE_TOKEN }}
groups: testers
file: presentation/build/outputs/apk/develop/debug/presentation-develop-debug.apk
run: ./gradlew :presentation:assembleDevelopDebug

# - name: upload artifact to Firebase App Distribution
# uses: wzieba/[email protected]
# with:
# appId: ${{ secrets.FIREBASE_APP_ID }}
# token: ${{ secrets.FIREBASE_TOKEN }}
# groups: testers
# file: presentation/build/outputs/apk/develop/debug/presentation-develop-debug.apk

0 comments on commit 6892721

Please sign in to comment.