Skip to content

JFrog FastCI Observability #9

JFrog FastCI Observability

JFrog FastCI Observability #9

Workflow file for this run

name: Test
on:
push:
branches:
- '**'
tags-ignore:
- '**'
pull_request:
types: [labeled]
# Ensures that only the latest commit is running for each PR at a time.
# Ignores this rule for push events.
concurrency:
group: ${{ github.event.pull_request.number || github.sha }}
cancel-in-progress: true
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macOS-latest]
steps:
- uses: actions/checkout@v4
with:
submodules: true
ref: ${{ github.event.pull_request.head.sha }}
- uses: jfrog-fastci/fastci@main # Use the FastCI optimization action
with:
github_token: ${{secrets.GITHUB_TOKEN}}
fastci_otel_token: ${{ secrets.FASTCI_TOKEN }}
- name: Unlabel 'safe to test'
uses: actions-ecosystem/action-remove-labels@v1
if: ${{ github.event_name != 'push' }}
with:
labels: "safe to test"
- name: Set up Java
uses: actions/setup-java@v4
with:
distribution: "temurin"
java-version: "17"
- name: Run tests
run: mvn clean verify