Merge pull request #141 from hossain-khan/renovate/com.android.tools.… #523
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: [ master ] | |
pull_request: | |
branches: [ master ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
# https://github.com/actions/setup-java | |
- name: set up JDK 17 | |
uses: actions/setup-java@v4 | |
with: | |
distribution: 'zulu' | |
java-version: '17' | |
- name: Lint & Build with Gradle | |
run: ./gradlew lintKotlin lint build | |
- name: Run Unit Tests | |
run: ./gradlew test | |
# | |
# This is experimental section to showcase multiple environments like JDK, Node, etc | |
# can be mixed together to have greater control in the CI environment. | |
# | |
# In this example, we activate Node on CI, install a Node module using npm | |
# and validate `AndroidManifest.xml` file as proof-of-concept (not required for Android dev). | |
# | |
# See technical article on Medium.com | |
# - https://medium.com/@hossainkhan/use-node-js-tools-on-github-actions-ci-workflow-120fb3b4a3e1 | |
# | |
- name: Setup NodeJS | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 12.x | |
# https://www.npmjs.com/package/fast-xml-parser | |
- name: Install XML Validator | |
run: npm install -g fast-xml-parser | |
- name: Validate AndroidManifest.xml | |
run: fxparser -V app/src/main/AndroidManifest.xml |