Skip to content

Adding XefMobile project #1863

Adding XefMobile project

Adding XefMobile project #1863

Workflow file for this run

name: Build
on:
pull_request: {}
workflow_dispatch: {}
env:
GRADLE_OPTS: -Dorg.gradle.daemon=false
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
check:
runs-on: ${{ matrix.os }}
timeout-minutes: 15
strategy:
matrix:
include:
- platform: jvm
os: ubuntu-latest
- platform: js
os: ubuntu-latest
- platform: linuxX64
os: ubuntu-latest
- platform: macosX64
os: macos-latest
- platform: mingwX64
os: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Configure JDK
uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: 20
- name: Build and Test (multip)
uses: gradle/gradle-build-action@v3
with:
arguments: buildAndTestMultip -Pplatform=${{ matrix.platform }}
- name: Build and Test (singlep)
uses: gradle/gradle-build-action@v3
with:
arguments: buildAndTestSinglep -Pplatform=${{ matrix.platform }}
if: ${{ matrix.platform == 'jvm' }}
- name: Upload reports
if: failure()
uses: actions/upload-artifact@v4
with:
name: 'reports'
path: '**/build/reports/**'
spotless:
runs-on: ubuntu-latest
timeout-minutes: 10
permissions:
contents: write
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Configure JDK
uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: 20
- name: Spotless Apply
uses: gradle/gradle-build-action@v3
with:
arguments: spotlessApply
- name: Commit newly formatted files
uses: stefanzweifel/git-auto-commit-action@v5
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
commit_message: "Apply spotless formatting"
commit_options: '--no-verify'
file_pattern: '**/*.kt'
commit_user_name: "GitHub Actions"