Skip to content

HTM-1227: allow monitoring of triggered jobs through Sentry #2652

HTM-1227: allow monitoring of triggered jobs through Sentry

HTM-1227: allow monitoring of triggered jobs through Sentry #2652

Workflow file for this run

name: MacOS Maven build
env:
MAVEN_OPTS: -Djava.awt.headless=true
MAVEN_VERSION: '3.9.9'
concurrency:
group: ${{ github.workflow }}-${{ ( github.ref == 'refs/heads/main' || github.ref == 'refs/heads/release' ) && format('ci-main-{0}', github.sha) || format('ci-main-{0}', github.ref) }}
cancel-in-progress: true
on:
pull_request:
jobs:
build:
name: 'Build w/ Java 17'
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- uses: actions/cache@v4
with:
path: ~/.m2/repository
key: setup-java-Linux-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
setup-java-Linux-maven-
- name: 'Set up JDK'
uses: actions/setup-java@v4
with:
java-version: 17
distribution: 'temurin'
- name: 'Set up Maven'
uses: stCarolas/setup-maven@v5
with:
maven-version: ${{ env.MAVEN_VERSION }}
- name: 'Priming build with Maven'
run: mvn -B -V -fae -DskipTests -DskipITs -DskipQA=true install
- name: 'Build with Maven'
run: |
mvn -B -fae -e test
- name: 'Upload coverage to Codecov'
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
- name: 'Upload test results to Codecov'
if: ${{ !cancelled() }}
uses: codecov/test-results-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: target/surefire-reports/TEST-*.xml
- name: 'Cleanup snapshots'
run: |
find ~/.m2/repository -name "*SNAPSHOT*" -type d | xargs rm -rf {}