Skip to content

Merge pull request #137 from RedMadRobot/feature/update-dependencies #359

Merge pull request #137 from RedMadRobot/feature/update-dependencies

Merge pull request #137 from RedMadRobot/feature/update-dependencies #359

Workflow file for this run

name: CI
on:
push:
branches: [develop]
pull_request:
branches: [develop]
jobs:
check:
name: Check
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v4
- name: Setup Java
uses: actions/setup-java@v4
with:
distribution: temurin
java-version: 17
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v3
- name: Run Check
run: ./gradlew detektMainAll check
publish:
name: Publish
needs: check
runs-on: ubuntu-latest
if: ${{ github.ref == 'refs/heads/develop' }}
steps:
- name: Checkout sources
uses: actions/checkout@v4
- name: Setup Java
uses: actions/setup-java@v4
with:
distribution: temurin
java-version: 17
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v3
- name: Run Publish
run: ./gradlew publishAllPublicationsToGithubPackagesRepository
env:
ORG_GRADLE_PROJECT_githubPackagesUsername: ${{ github.actor }}
ORG_GRADLE_PROJECT_githubPackagesPassword: ${{ secrets.GITHUB_TOKEN }}
samples:
name: Verify samples
needs: check
runs-on: ubuntu-latest
if: ${{ github.ref != 'refs/heads/develop' }}
strategy:
matrix:
sample: ['android-application', 'android-application-multi']
steps:
- name: Checkout sources
uses: actions/checkout@v4
- name: Setup Java
uses: actions/setup-java@v4
with:
distribution: temurin
java-version: 17
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v3
- name: Run Publish
run: ./gradlew publishToMavenLocal
- name: Run Build
run: |
cd samples/${{ matrix.sample }}
./gradlew build