Skip to content

Merge pull request #5 from tberchanov/setup-ci #7

Merge pull request #5 from tberchanov/setup-ci

Merge pull request #5 from tberchanov/setup-ci #7

Workflow file for this run

name: Android CI
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: set up JDK 17
uses: actions/setup-java@v4
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
check-changelog:
name: Ensure CHANGELOG.md is Updated
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v4
- name: Check for CHANGELOG.md changes
run: |
# Fetch the base branch to compare changes
git fetch origin ${{ github.base_ref }} --depth=1
# Check if CHANGELOG.md has been modified
if git diff --name-only origin/master | grep -q "CHANGELOG.md"; then
echo "CHANGELOG.md has been updated."
else
echo "Error: CHANGELOG.md was not updated. Please update the CHANGELOG."
exit 1
fi