Skip to content

Add utility method on ManifestDescriptor to construct manifest descriptor with Platform and Annotation from Manifest #960

Add utility method on ManifestDescriptor to construct manifest descriptor with Platform and Annotation from Manifest

Add utility method on ManifestDescriptor to construct manifest descriptor with Platform and Annotation from Manifest #960

Workflow file for this run

name: PR build
on:
workflow_dispatch:
pull_request:
branches: [main, release/0.2.x]
push:
branches:
- release/0.2.x
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Read Maven version
id: maven-version
run: echo "version=$(cat .github/vars/maven-version.txt)" >> $GITHUB_OUTPUT
- name: Setup Python
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
with:
python-version: '3.13'
- name: Run pre-commit
uses: pre-commit/action@2c7b3805fd2a0fd8c1884dcaebf91fc102a13ecd # v3.0.1
maven-build:
runs-on: ubuntu-latest
needs: build
strategy:
matrix:
java: [17, 21, 25]
steps:
- name: Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Install docker-credential-fake
run: |
sudo cp docker-credential-fake /usr/bin/docker-credential-fake
- name: Read Maven version
id: maven-version
run: echo "version=$(cat .github/vars/maven-version.txt)" >> $GITHUB_OUTPUT
- name: Setup Maven Action
uses: s4u/setup-maven-action@6c4e9964d4ecb8f1026310cd8618791fd51a8016 # v1.19.0
with:
checkout-enabled: false
java-distribution: 'temurin'
java-version: ${{ matrix.java }}
maven-version: ${{ steps.maven-version.outputs.version }}
cache-enabled: true
- name: Maven build
run: mvn --batch-mode --update-snapshots verify
- name: Upload coverage reports to Codecov
if: matrix.java == '17'
uses: codecov/codecov-action@671740ac38dd9b0130fbe1cec585b89eea48d3de # v5.5.2
with:
files: target/site/jacoco/jacoco.xml
token: ${{ secrets.CODECOV_TOKEN }}