Skip to content

Create shared Android CI workflow #83

Create shared Android CI workflow

Create shared Android CI workflow #83

Workflow file for this run

name: CI
on:
pull_request:
push:
branches: [ develop ]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
static-checks:
name: Run static checks
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Gradle
uses: ./.github/actions/setup-gradle
with:
cache-read-only: ${{ github.ref != 'refs/heads/main' && github.ref != 'refs/heads/develop' }}
- name: Spotless
run: ./gradlew spotlessCheck
- name: Detekt
if: always()
run: ./gradlew detekt
build:
name: Build and validate
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Gradle
uses: ./.github/actions/setup-gradle
with:
cache-read-only: ${{ github.ref != 'refs/heads/main' && github.ref != 'refs/heads/develop' }}
- name: Build and validate
run: ./gradlew build :plugin:validatePlugins
validate-workflows:
name: Run actionlint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: raven-actions/[email protected]