Skip to content

test ci

test ci #1

Workflow file for this run

name: Android CI
# Triggers the workflow on push to the main branch or on pull requests
on:
push:
branches:
- master
- feat/ci-workflow
pull_request:
branches:
- master
- feat/ci-workflow
jobs:
build:
runs-on: ubuntu-latest
steps:
# Step 1: Checkout the repository code
- name: Checkout code
uses: actions/checkout@v2
# Step 2: Set up JDK 11 (required for Gradle)
- name: Set up JDK 11
uses: actions/setup-java@v1
with:
java-version: '11'
# Step 3: Cache Gradle dependencies
- name: Cache Gradle dependencies
uses: actions/cache@v2
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
restore-keys: |
${{ runner.os }}-gradle-
# Step 4: Build the project using Gradle
- name: Build with Gradle
run: ./gradlew build
env:
PROD_MAPPING_UPLOAD_CLIENT_ID: ${{ secrets.PROD_MAPPING_UPLOAD_CLIENT_ID }}
PROD_MAPPING_UPLOAD_CLIENT_SECRET: ${{ secrets.PROD_MAPPING_UPLOAD_CLIENT_SECRET }}
# Optional Step: Run your tests
- name: Run tests
run: ./gradlew test