Update build.yaml #2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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" |