mirror of
https://github.com/msfjarvis/compose-lobsters.git
synced 2024-06-03 04:18:58 +05:30
58 lines
1.5 KiB
YAML
58 lines
1.5 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-14
|
|
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 check -PslimTests
|
|
|
|
- name: (Fail-only) Upload test report
|
|
if: failure()
|
|
uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3
|
|
with:
|
|
name: Test report
|
|
path: '**/build/reports/tests/**'
|
|
|
|
dependency-review:
|
|
runs-on: macos-14
|
|
if: "github.event_name == 'push' && github.event.ref != 'refs/heads/main'"
|
|
needs:
|
|
- check
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
|
|
|
|
- name: Dependency Review
|
|
uses: actions/dependency-review-action@e58c696e52cac8e62d61cc21fda89565d71505d7 # v4
|
|
with:
|
|
base-ref: refs/heads/main
|
|
head-ref: ${{ github.ref }}
|