Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
82 changes: 82 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
#
# 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
Comment thread
coderabbitai[bot] marked this conversation as resolved.

- name: Submit dependency graph
uses: advanced-security/maven-dependency-submission-action@v5
Comment thread
lucacome marked this conversation as resolved.
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: make PROFILES=${{ matrix.profile }} classpath
10 changes: 10 additions & 0 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,21 @@ jobs:
include:
- language: java-kotlin
build-mode: none # This mode only analyzes Java. Set this to 'autobuild' or 'manual' to analyze Kotlin too.
- language: actions
build-mode: none

steps:
- name: Checkout repository
uses: actions/checkout@v7

- name: Set up Java
uses: actions/setup-java@v5
with:
distribution: temurin
java-version: '8'
cache: maven
if: matrix.language == 'java-kotlin'

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v4
Expand Down
Loading