Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Update build.yaml

Update build.yaml #2

Workflow file for this run

name: Maven CI
on:
push:
branches: [ "master" ]
workflow_dispatch:
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
env:
JAVA_VERSION: '11'
CODACY_PROJECT_TOKEN: ${{ secrets.CODACY_PROJECT_TOKEN }}
steps:
- name: Checkout this repo
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Java
uses: actions/setup-java@v4
with:
distribution: Temurin
java-version: ${{ env.JAVA_VERSION }}
cache: maven
- name: Checkout sdmx-core-bom from BIS
uses: actions/checkout@v4
with:
repository: bis-med-it/sdmx-core-bom
ref: refs/tags/v11.21.0
token: ${{ secrets.BIS_MED_IT_TOKEN }}
path: sdmx-core-bom
fetch-depth: 1
- name: Build and install sdmx-core-bom
working-directory: sdmx-core-bom
run: mvn -B -ntp -DskipTests install
- name: Checkout sdmx-core from BIS
uses: actions/checkout@v4
with:
repository: bis-med-it/sdmx-core
ref: refs/tags/v11.21.0
token: ${{ secrets.BIS_MED_IT_TOKEN }}
path: sdmx-core
fetch-depth: 1
- name: Build and install sdmx-core
working-directory: sdmx-core
run: mvn -B -ntp -DskipTests install
- name: Build, test, and generate JaCoCo reports
run: |
mvn -B -ntp -P with-spark,with-sdmx verify
- name: Upload to Codacy
uses: codacy/[email protected]
with:
project-token: ${{ secrets.CODACY_VTL_TOKEN }}
coverage-reports: "**/target/site/jacoco/jacoco.xml"