81 lines
2.2 KiB
YAML
81 lines
2.2 KiB
YAML
name: CI
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
- renovate/**
|
|
|
|
pull_request:
|
|
branches:
|
|
- main
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
check:
|
|
runs-on: macos-26
|
|
steps:
|
|
- name: Setup build environment
|
|
uses: msfjarvis/compose-lobsters/.github/reusable-workflows/setup-gradle@main
|
|
with:
|
|
fetch-depth: 0
|
|
cache-read-only: ${{ github.ref != 'refs/heads/main' }}
|
|
dependency-graph: generate-and-submit
|
|
|
|
- name: Check changelog format
|
|
uses: mindsers/changelog-reader-action@32aa5b4c155d76c94e4ec883a223c947b2f02656 # v2.2.3
|
|
with:
|
|
path: ./CHANGELOG.md
|
|
validation_level: error
|
|
|
|
- name: Run unit tests
|
|
run: ./gradlew --no-configuration-cache --stacktrace :build-logic:check check -PslimTests
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
- name: (Fail-only) Upload test report
|
|
if: failure()
|
|
uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0
|
|
with:
|
|
name: Test report
|
|
path: '**/build/reports/tests/**'
|
|
|
|
dependency-review:
|
|
runs-on: macos-26
|
|
if: "github.event_name == 'push' && github.event.ref != 'refs/heads/main'"
|
|
needs:
|
|
- check
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
|
with:
|
|
persist-credentials: false
|
|
|
|
- name: Dependency Review
|
|
uses: actions/dependency-review-action@3c4e3dcb1aa7874d2c16be7d79418e9b7efd6261 # v4
|
|
with:
|
|
base-ref: refs/heads/main
|
|
head-ref: ${{ github.ref }}
|
|
|
|
release-app:
|
|
runs-on: macos-26
|
|
needs:
|
|
- check
|
|
steps:
|
|
- name: Setup build environment
|
|
uses: msfjarvis/compose-lobsters/.github/reusable-workflows/setup-gradle@main
|
|
with:
|
|
cache-read-only: true
|
|
|
|
- name: Build release app
|
|
run: |
|
|
./scripts/setup-age.sh
|
|
./scripts/signing-setup.sh "$AGE_SECRET_KEY"
|
|
./gradlew --no-configuration-cache --stacktrace assembleRelease collectReleaseBundle
|
|
./scripts/signing-cleanup.sh
|
|
env:
|
|
AGE_SECRET_KEY: ${{ secrets.AGE_SECRET_KEY }}
|