Files
grimmory/.github/workflows/ci-validate.yml
T
dependabot[bot] a0e2f600b1 chore(deps): bump actions/upload-artifact from 7.0.0 to 7.0.1 (#763)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-04-22 17:27:46 -04:00

78 lines
2.6 KiB
YAML

name: CI - Validate
on:
pull_request:
branches:
- develop
- main
push:
branches:
- develop
jobs:
upload-event-file:
name: Upload Event File
if: ${{ github.event_name != 'push' || !contains(github.event.head_commit.message, '[skip ci]') }}
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: Upload GitHub Event Payload
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
name: ci-event-file
path: ${{ github.event_path }}
retention-days: 7
migration-check:
name: Flyway Migration Check
if: ${{ github.event_name != 'push' || !contains(github.event.head_commit.message, '[skip ci]') }}
uses: ./.github/workflows/migrations-check.yml
with:
base_ref: ${{ github.event_name == 'pull_request' && github.event.pull_request.base.sha || github.event.before }}
head_ref: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || github.sha }}
checkout_ref: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || github.sha }}
test-suite:
name: Test Suite
if: ${{ (github.event_name != 'push' || !contains(github.event.head_commit.message, '[skip ci]')) && (needs.migration-check.result == 'success' || needs.migration-check.result == 'skipped') }}
needs: [migration-check]
uses: ./.github/workflows/test-suite.yml
permissions:
contents: read
checks: write
with:
checkout_ref: ${{ github.sha }}
publish_test_results: false
save_gradle_cache: ${{ github.event_name == 'push' && github.ref == 'refs/heads/develop' }}
packaging-smoke-test:
name: Packaging Smoke Test
if: ${{ (github.event_name != 'push' || !contains(github.event.head_commit.message, '[skip ci]')) && needs.test-suite.result == 'success' }}
needs: [migration-check, test-suite]
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: Checkout Repository
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
- name: Set Up Docker Buildx
uses: docker/setup-buildx-action@4d04d5d9486b7bd6fa91e7baf45bbb4f8b9deedd # v4.0.0
- name: Build Runtime Image
uses: docker/build-push-action@bcafcacb16a39f128d818304e6c9c0c18556b85f # v7.1.0
with:
context: .
file: Dockerfile
platforms: linux/amd64
push: false
build-args: |
APP_VERSION=ci-${{ github.sha }}
APP_REVISION=${{ github.sha }}
cache-from: type=gha,scope=image-shared