Skip to content

fix: interference api upload issues #3

fix: interference api upload issues

fix: interference api upload issues #3

Workflow file for this run

name: Test Build
on:
pull_request:
branches:
- main
- "release/**"
permissions:
contents: read
checks: write
pull-requests: write
jobs:
build-and-test:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Set up JDK
uses: actions/setup-java@v4
with:
java-version: "21"
distribution: "corretto"
cache: "maven"
- name: Cache Maven packages
uses: actions/cache@v4
with:
path: |
~/.m2/repository
!~/.m2/repository/org/devgateway/tcdi
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
- name: Build and Test
run: mvn -B verify -Dcheckstyle.skip -Dtest='!**/DatasetClientTest' --file pom.xml
- name: Publish Test Results
uses: EnricoMi/publish-unit-test-result-action@v2
if: always()
with:
files: |
**/target/surefire-reports/*.xml
- name: Package Application
run: mvn -B package -DskipTests --file pom.xml
- name: Upload Build Artifacts
uses: actions/upload-artifact@v4
with:
name: build-artifacts
path: |
**/target/*.jar
retention-days: 7