mirror of
https://github.com/msfjarvis/compose-lobsters
synced 2025-08-14 22:17:03 +05:30
fix(ci): rework job conditions
This commit is contained in:
parent
fcca85c51a
commit
83ba17dea3
1 changed files with 7 additions and 14 deletions
21
.github/workflows/ci.yml
vendored
21
.github/workflows/ci.yml
vendored
|
@ -37,6 +37,12 @@ jobs:
|
||||||
add-job-summary: always
|
add-job-summary: always
|
||||||
dependency-graph: generate-and-submit
|
dependency-graph: generate-and-submit
|
||||||
|
|
||||||
|
- name: Check changelog format
|
||||||
|
uses: mindsers/changelog-reader-action@b97ce03a10d9bdbb07beb491c76a5a01d78cd3ef # v2.2.2
|
||||||
|
with:
|
||||||
|
path: ./CHANGELOG.md
|
||||||
|
validation_level: error
|
||||||
|
|
||||||
- name: Run unit tests
|
- name: Run unit tests
|
||||||
run: ./gradlew --no-configuration-cache --stacktrace check -PslimTests
|
run: ./gradlew --no-configuration-cache --stacktrace check -PslimTests
|
||||||
|
|
||||||
|
@ -49,6 +55,7 @@ jobs:
|
||||||
|
|
||||||
dependency-review:
|
dependency-review:
|
||||||
runs-on: macos-14
|
runs-on: macos-14
|
||||||
|
if: "github.event_name == 'push' && github.event.ref != 'refs/heads/main'"
|
||||||
needs:
|
needs:
|
||||||
- check
|
- check
|
||||||
steps:
|
steps:
|
||||||
|
@ -61,25 +68,11 @@ jobs:
|
||||||
base-ref: refs/heads/main
|
base-ref: refs/heads/main
|
||||||
head-ref: ${{ github.ref }}
|
head-ref: ${{ github.ref }}
|
||||||
|
|
||||||
validate-changelog:
|
|
||||||
runs-on: macos-14
|
|
||||||
steps:
|
|
||||||
- name: Checkout repository
|
|
||||||
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
|
|
||||||
|
|
||||||
- name: Check changelog format
|
|
||||||
uses: mindsers/changelog-reader-action@b97ce03a10d9bdbb07beb491c76a5a01d78cd3ef # v2.2.2
|
|
||||||
with:
|
|
||||||
path: ./CHANGELOG.md
|
|
||||||
validation_level: error
|
|
||||||
|
|
||||||
deploy-release-snapshot:
|
deploy-release-snapshot:
|
||||||
runs-on: macos-14
|
runs-on: macos-14
|
||||||
if: "github.event_name == 'push' && github.event.ref == 'refs/heads/main'"
|
if: "github.event_name == 'push' && github.event.ref == 'refs/heads/main'"
|
||||||
needs:
|
needs:
|
||||||
- check
|
- check
|
||||||
- validate-changelog
|
|
||||||
- dependency-review
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
|
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue