Skip to content

feat: Added support for sending a one-time SDK initialization event t… #11

feat: Added support for sending a one-time SDK initialization event t…

feat: Added support for sending a one-time SDK initialization event t… #11

name: CI
on:
push:
branches:
- feat/actions # Trigger on pushes to this branch
- master # Trigger on pushes to this branch
jobs:
test:
# Skip running the job if the commit message contains [skip-ci]
if: "!contains(github.event.head_commit.message, '[skip-ci]')"
name: Run Unit Tests on Java ${{ matrix.java-version }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os:
- ubuntu-latest
java-version: ['11', '17']
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up JDK ${{ matrix.java-version }}
uses: actions/setup-java@v4
with:
java-version: ${{ matrix.java-version }}
distribution: 'temurin' # Temurin provides OpenJDK 21 builds
- name: Grant execute permission for gradlew
run: chmod +x ./gradlew
- name: Run unit tests for fme-android module
working-directory: ./fme-android
run: ../gradlew testDebugUnitTest
# - name: Upload coverage to Codecov
# run: |
# curl -Os https://uploader.codecov.io/latest/macos/codecov
# chmod +x codecov
# ./codecov
- name: Notification
if: always()
id: slack
uses: wingify/[email protected]
with:
channel-id: 'vwo-fs-fme-sdk-job-status' # 'fs-review-team'
slack-message: "<!here> Android FME SDK Test on *Java-${{ matrix.java-version }}* and *${{ matrix.os }}* got *${{job.status}}* ${{job.status == 'success' && ':heavy_check_mark:' || ':x:'}} \nCommit: `${{github.event.head_commit.message}}`. \nCheck the latest build: https://github.com/wingify/vwo-fme-android-sdk/actions"
color: "${{job.status == 'success' && '#00FF00' || '#FF0000'}}"
env:
SLACK_BOT_TOKEN: ${{ secrets.SLACK_NOTIFICATIONS_BOT_TOKEN }}