Skip to content

Feature/login singup onboarding #21

Feature/login singup onboarding

Feature/login singup onboarding #21

Workflow file for this run

name: Android CI
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
concurrency:
group: build-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'
cache: gradle
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Build with Gradle
run: ./gradlew build
- name: Archive production artifacts
uses: actions/upload-artifact@v2
with:
name: app
path: app/build/outputs/apk/
test:
runs-on: ubuntu-latest
needs: build
steps:
- name: Checkout code
uses: actions/checkout@v4.1.0
- name: Set up JDK 17
uses: actions/setup-java@v3.13.0
with:
distribution: 'adopt'
java-version: '17'
- name: Grant execute permissions for gradlew
run: chmod +x ./gradlew
- name: Run Tests with Gradle
run: ./gradlew test
lint:
runs-on: ubuntu-latest
needs: build
steps:
- name: Checkout code
uses: actions/checkout@v4.1.0
- name: Set up JDK 17
uses: actions/setup-java@v3.13.0
with:
distribution: 'temurin'
java-version: '17'
cache: gradle
- name: Grant execute permissions for gradlew
run: chmod +x ./gradlew
- name: Run Lint with Gradle
run: ./gradlew lint
- name: Upload lint results
uses: actions/upload-artifact@v2
with:
name: lint-results
path: '**/build/reports/lint-results-*.html'
dokka:
runs-on: ubuntu-latest
needs: [ build, test ]
steps:
- name: Checkout code
uses: actions/checkout@v4.1.0
- name: Set up JDK 17
uses: actions/setup-java@v3.13.0
with:
distribution: 'temurin'
java-version: '17'
cache: gradle
- name: Grant execute permissions for gradlew
run: chmod +x ./gradlew
- name: Run Dokka with Gradle
run: ./gradlew dokkaHtmlMultiModule
- name: Deploy to GitHub Pages
uses: JamesIves/github-pages-deploy-action@v4
with:
branch: gh-pages
folder: build/dokka/htmlMultiModule