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 b44486e
Showing 1 changed file with 22 additions and 10 deletions.
32 changes: 22 additions & 10 deletions .github/workflows/master-release-ci.yml
Original file line number Diff line number Diff line change
@@ -1,32 +1,44 @@
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"

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

- name: upload artifact to Firebase App Distribution
uses: wzieba/[email protected]
Expand Down

0 comments on commit b44486e

Please sign in to comment.