Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
65 changes: 65 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
name: Order Contract CI

on:
pull_request:
push:
branches: [main, master, feature/spring-microservices, chore/registry-ci]

permissions:
contents: read
security-events: write

jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
distribution: temurin
java-version: '25'
cache: maven
- run: ./mvnw --batch-mode validate

format:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: |
git diff --check
! grep -R -n -E '^(<<<<<<<|=======|>>>>>>>)' --exclude-dir=.git .

test:
runs-on: ubuntu-latest
needs: [lint, format]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
distribution: temurin
java-version: '25'
cache: maven
- run: ./mvnw --batch-mode --no-transfer-progress test

quality:
runs-on: ubuntu-latest
needs: test
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
distribution: temurin
java-version: '25'
cache: maven
- run: ./mvnw --batch-mode --no-transfer-progress verify

security:
runs-on: ubuntu-latest
needs: lint
steps:
- uses: actions/checkout@v4
- uses: github/codeql-action/init@v3
with:
languages: java
- uses: github/codeql-action/autobuild@v3
- uses: github/codeql-action/analyze@v3
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,7 @@ response records and the controller interface consumed by

This contract has no runtime configuration and requires no GitHub Actions
secrets.

The contract workflow validates formatting, Maven compilation, tests, quality,
and CodeQL. It does not publish a container because it is a reusable Java
library rather than a runnable service.
Loading