Skip to content

Changed classloader to fixed the problem that classes cannot be loaded in the tomcat scenario #5640

Changed classloader to fixed the problem that classes cannot be loaded in the tomcat scenario

Changed classloader to fixed the problem that classes cannot be loaded in the tomcat scenario #5640

Workflow file for this run

name: CI
on:
push:
pull_request:
branches:
- '*'
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}-${{ github.head_ref }}
cancel-in-progress: true
jobs:
checkstyle:
name: Checkstyle
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: reviewdog/action-setup@v1
with:
reviewdog_version: v0.18.1
- name: download checkstyle
run: curl -o checkstyle.jar -L https://github.com/checkstyle/checkstyle/releases/download/checkstyle-8.41.1/checkstyle-8.41.1-all.jar
- name: checkstyle
env:
REVIEWDOG_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
java -jar checkstyle.jar -c checkstyle.xml -f xml . | reviewdog -f=checkstyle -name="Checkstyle Check" -reporter=github-pr-check -level=error
build:
runs-on: windows-latest
name: build
steps:
- uses: actions/checkout@v4
- name: Set up JDK 8
uses: actions/setup-java@v4
with:
java-version: '8'
distribution: 'adopt'
cache: maven
- name: Create License Binary Suffix
run: |
mvn license:aggregate-add-third-party
- name: Build with Maven
run: |
mvn clean package -P agent -P package -DskipTests
mkdir ${{ github.workspace }}/package
cp ${{ github.workspace }}/sermant-agent-*.tar ${{ github.workspace }}/package
- name: upload package
uses: actions/upload-artifact@v4
with:
name: sermant
path: ${{ github.workspace }}/package