Skip to content

Update dependencies & Modernize the codebase a little bit #203

Update dependencies & Modernize the codebase a little bit

Update dependencies & Modernize the codebase a little bit #203

Workflow file for this run

name: Build and run local tests
on:
push:
branches:
- main
tags-ignore:
- 'v*'
paths-ignore:
- '**.md'
- '**.txt'
pull_request:
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}
cancel-in-progress: true
env:
RAWG_API_KEY: ${{ secrets.RAWG_API_KEY }}
BUGSNAG_API_KEY: ${{ secrets.BUGSNAG_API_KEY }}
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Validate Gradle Wrapper
uses: gradle/wrapper-validation-action@v1
- name: set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'
cache: gradle
- name: Setup Gradle
uses: gradle/[email protected]
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Build debug
run: ./gradlew assembleDebug packageDistributionForCurrentOS --stacktrace
- name: Run local tests
run: ./gradlew testDebug desktopTest --stacktrace
- name: Apply ktlint formatting to (.kt/s) files.
run: ./gradlew ktlintFormat --stacktrace
- name: Apply Spotless formatting if not applied.
run: ./gradlew spotlessApply --stacktrace
- name: Commit and push changes (if any).
if: ${{ github.ref == 'refs/heads/main' }}
uses: EndBug/add-and-commit@v9
with:
author_name: GitHub Actions
author_email: [email protected]
message: Apply style formatting
push: true
- name: Upload build outputs (APKs & Desktop binaries)
uses: actions/upload-artifact@v3
with:
name: build-outputs
path: |
**/build/outputs/*
**/build/compose/*
- name: Upload build reports
if: always()
uses: actions/upload-artifact@v3
with:
name: build-reports
path: ./**/build/reports