Skip to content

Create CI

Create CI #15

Workflow file for this run

#
# Copyright 2017-2026 The OpenTracing Authors
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
# in compliance with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software distributed under the License
# is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
# or implied. See the License for the specific language governing permissions and limitations under
# the License.
#
name: CI
on:
push:
branches:
- master
pull_request:
branches:
- master
permissions:
contents: read
jobs:
test:
name: Test
runs-on: ubuntu-24.04
permissions:
contents: write
steps:
- name: Checkout repository
uses: actions/checkout@v7
with:
# needed by license-maven-plugin, which inspects git history
fetch-depth: 0
persist-credentials: false
- name: Set up Java
uses: actions/setup-java@v5
with:
distribution: temurin
java-version: '8'
cache: maven
- name: Build and test
run: ./mvnw clean install
- name: Submit dependency graph
uses: advanced-security/maven-dependency-submission-action@v5
if: github.event_name == 'push'
classpath:
name: Classpath (${{ matrix.profile }})
runs-on: ubuntu-24.04
strategy:
fail-fast: false
matrix:
profile: [nodeps, alldeps]
steps:
- name: Checkout repository
uses: actions/checkout@v7
with:
# needed by license-maven-plugin, which inspects git history
fetch-depth: 0
persist-credentials: false
- name: Set up Java
uses: actions/setup-java@v5
with:
distribution: temurin
java-version: '8'
cache: maven
- name: Install dependencies
run: ./mvnw install -DskipTests=true -Dmaven.javadoc.skip=true -B -V
- name: Run classpath tests
run: PROFILES=${{ matrix.profile }} make classpath