Create Health Connect to FHIR converter module #34
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |